花了一些时间来解决这个问题:
gem install json
Run Code Online (Sandbox Code Playgroud)
导致此错误:
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/home/user/.rvm/rubies/ruby/bin/ruby -r ./siteconf20150611-1112-jqgxzj.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
Run Code Online (Sandbox Code Playgroud)
这里重要的一行是"找不到-lgmp".
| 归档时间: |
|
| 查看次数: |
584 次 |
| 最近记录: |