Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add libgmp-dev as an Ubuntu requirement #3509
RVM installs a binary ruby, which is linked to libgmp, but doesn't install the libgmp-dev package. Ruby runs fine this way, but extensions will not compile.
rake-compiler-dock via @larskanis
As a result it is not possible to install gems like nokogiri or atomic (which is necessary for rails).
I can confirm that I had this issue on Ruby-2.2.3. I wasted hours trying out solutions on Stack Overflow and other sites, but finally found the solution here:
Thanks Lars Kanis for the solution. I had to do the following:
sudo apt-get install libgmp-dev
Sorry, this is my first post here, so I am not good at formatting.
referenced this issue
Sep 18, 2015
This is an issue with the binary hosted at https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.2.3.tar.bz2
This is evidence that the 2.2.3 binary is linking against libgmp, where that hadn't been done in the past.
Who built this binary? Is it under the rvm team's control? It's causing problems with the installation of C extensions, as indicated by these threads:
This issue is also causing problems with my gem hitimes. I have had multiple folks report hitimes as unable to install and this is the culprit. Has anyone contacted @travis-ci about this? It sounds to be that there needs to be some additional coordination between RVM and @travis-ci if one is going to provide the ruby installation, and the other is going to use it.
The alternative is to remove the Travis URLs from RVM's config.
I'd prefer if Travis binaries either were no longer installed by RVM or
Adding libgmp as a dependency for RVM seems like a defensive decision, but