{"action":"created","issue":{"url":"https://api.github.com/repos/rvm/rvm/issues/3564","labels_url":"https://api.github.com/repos/rvm/rvm/issues/3564/labels{/name}","comments_url":"https://api.github.com/repos/rvm/rvm/issues/3564/comments","events_url":"https://api.github.com/repos/rvm/rvm/issues/3564/events","html_url":"https://github.com/rvm/rvm/pull/3564","id":117862271,"number":3564,"title":"Add libgmp-dev as an Ubuntu requirement","user":{"login":"copiousfreetime","id":11256,"avatar_url":"https://avatars.githubusercontent.com/u/11256?v=3","gravatar_id":"","url":"https://api.github.com/users/copiousfreetime","html_url":"https://github.com/copiousfreetime","followers_url":"https://api.github.com/users/copiousfreetime/followers","following_url":"https://api.github.com/users/copiousfreetime/following{/other_user}","gists_url":"https://api.github.com/users/copiousfreetime/gists{/gist_id}","starred_url":"https://api.github.com/users/copiousfreetime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copiousfreetime/subscriptions","organizations_url":"https://api.github.com/users/copiousfreetime/orgs","repos_url":"https://api.github.com/users/copiousfreetime/repos","events_url":"https://api.github.com/users/copiousfreetime/events{/privacy}","received_events_url":"https://api.github.com/users/copiousfreetime/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rvm/rvm/milestones/28","html_url":"https://github.com/rvm/rvm/milestones/rvm-1.26.12","labels_url":"https://api.github.com/repos/rvm/rvm/milestones/28/labels","id":1407205,"number":28,"title":"rvm-1.26.12","description":"","creator":{"login":"sikachu","id":4912,"avatar_url":"https://avatars.githubusercontent.com/u/4912?v=3","gravatar_id":"","url":"https://api.github.com/users/sikachu","html_url":"https://github.com/sikachu","followers_url":"https://api.github.com/users/sikachu/followers","following_url":"https://api.github.com/users/sikachu/following{/other_user}","gists_url":"https://api.github.com/users/sikachu/gists{/gist_id}","starred_url":"https://api.github.com/users/sikachu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sikachu/subscriptions","organizations_url":"https://api.github.com/users/sikachu/orgs","repos_url":"https://api.github.com/users/sikachu/repos","events_url":"https://api.github.com/users/sikachu/events{/privacy}","received_events_url":"https://api.github.com/users/sikachu/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":3,"state":"open","created_at":"2015-11-11T19:24:37Z","updated_at":"2015-11-22T20:57:09Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-11-19T17:18:38Z","updated_at":"2016-01-21T00:13:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rvm/rvm/pulls/3564","html_url":"https://github.com/rvm/rvm/pull/3564","diff_url":"https://github.com/rvm/rvm/pull/3564.diff","patch_url":"https://github.com/rvm/rvm/pull/3564.patch"},"body":"RVM uses the binaries from Travis CI for its installations.\r\nThe binaries for Ubuntu from Travis CI are compiled against libgmp which\r\nmeans that `-lgmp` is part of the `RbConfig::CONFIG[\"LIBS\"]` and is used\r\nin the compilation of ever C extention in ruby.\r\n\r\nIf libgmp is not installed, then any installation of any C extension rubygem\r\nwill fail when rubygems attempts to make sure that the compiler works.\r\nThis is evident by errors such as:\r\n\r\n```\r\nvagrant@vagrant-ubuntu-trusty-64:~$ gem install hitimes\r\nFetching: hitimes-1.2.3.gem (100%)\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing hitimes:\r\n        ERROR: Failed to build gem native extension.\r\n\r\n    /home/vagrant/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20151119-7016-spbnuj.rb extconf.rb\r\nchecking for clock_gettime() in -lrt... *** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of necessary\r\nlibraries and/or headers.  Check the mkmf.log file for more details.  You may\r\nneed configuration options.\r\n\r\nProvided configuration options:\r\n        --with-opt-dir\r\n        --without-opt-dir\r\n        --with-opt-include\r\n        --without-opt-include=${opt-dir}/include\r\n        --with-opt-lib\r\n        --without-opt-lib=${opt-dir}/lib\r\n        --with-make-prog\r\n        --without-make-prog\r\n        --srcdir=.\r\n        --curdir\r\n        --ruby=/home/vagrant/.rvm/rubies/ruby-2.2.3/bin/$(RUBY_BASE_NAME)\r\n        --with-rtlib\r\n        --without-rtlib\r\n/home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)\r\nYou have to install development tools first.\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:541:in `try_link0'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:556:in `try_link'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:735:in `try_func'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:966:in `block in have_library'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:911:in `block in checking_for'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:351:in `block (2 levels) in postpone'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:321:in `open'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:351:in `block in postpone'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:321:in `open'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:347:in `postpone'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:910:in `checking_for'\r\n        from /home/vagrant/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/mkmf.rb:961:in `have_library'\r\n        from extconf.rb:10:in `<main>'\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /home/vagrant/.rvm/gems/ruby-2.2.3/gems/hitimes-1.2.3 for inspection.\r\nResults logged to /home/vagrant/.rvm/gems/ruby-2.2.3/extensions/x86_64-linux/2.2.0/hitimes-1.2.3/gem_make.out\r\n```\r\n\r\nIn order to fix this, if RVM is going to use pre-built binaries, RVM\r\nmust ensure that the system libraries on a machine match the libraries\r\nthat ruby tiself is compiled against."},"comment":{"url":"https://api.github.com/repos/rvm/rvm/issues/comments/173409181","html_url":"https://github.com/rvm/rvm/pull/3564#issuecomment-173409181","issue_url":"https://api.github.com/repos/rvm/rvm/issues/3564","id":173409181,"user":{"login":"mpapis","id":48054,"avatar_url":"https://avatars.githubusercontent.com/u/48054?v=3","gravatar_id":"","url":"https://api.github.com/users/mpapis","html_url":"https://github.com/mpapis","followers_url":"https://api.github.com/users/mpapis/followers","following_url":"https://api.github.com/users/mpapis/following{/other_user}","gists_url":"https://api.github.com/users/mpapis/gists{/gist_id}","starred_url":"https://api.github.com/users/mpapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpapis/subscriptions","organizations_url":"https://api.github.com/users/mpapis/orgs","repos_url":"https://api.github.com/users/mpapis/repos","events_url":"https://api.github.com/users/mpapis/events{/privacy}","received_events_url":"https://api.github.com/users/mpapis/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T00:13:14Z","updated_at":"2016-01-21T00:13:14Z","body":"restarted tests, let's see what happens now"}}