赞
踩
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/ubuntu/.rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20151029-14154-1ac3ayw.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/ubuntu/.rvm/gems/ruby-2.2.2@tool-providers/gems/json-1.8.3 for inspection.
Results logged to /home/ubuntu/.rvm/gems/ruby-2.2.2@tool-providers/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
sudo apt-get install libgmp3-dev
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。