Skip to content

Instantly share code, notes, and snippets.

@MartynasM
Created December 19, 2015 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartynasM/5020786b139168ad6c5d to your computer and use it in GitHub Desktop.
Save MartynasM/5020786b139168ad6c5d to your computer and use it in GitHub Desktop.
$ gem install json -v '1.8.3'
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/home/bugo/.rvm/rubies/ruby-2.2.4/bin/ruby -r ./siteconf20151219-26737-u1beea.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling generator.c
linking shared-object json/ext/generator.so
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
make: *** [generator.so] Error 1
make failed, exit code 2
Gem files will remain installed in /home/bugo/.rvm/gems/ruby-2.2.4/gems/json-1.8.3 for inspection.
Results logged to /home/bugo/.rvm/gems/ruby-2.2.4/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment