当前位置:   article > 正文

ruby json(1.8.3) install error_an error occurred while installing json (2.6.3), a

an error occurred while installing json (2.6.3), and bundler cannot continue

ruby 2.2.2& 2.2.3 install json 1.8.3 error


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.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21

ruby 2.2.2 & 2.2.3 缺少依赖包 libgmp3-dev

sudo apt-get install libgmp3-dev
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/620410
推荐阅读
相关标签
  

闽ICP备14008679号