#ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
# gem -v
2.0.0.rc.2
# bundle -v
Bundler version 1.3.1
#gem install json -v '1.7.7' --no-ri --no-rdoc
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb
Gem files will remain installed in /usr/local/rvm/gems/ruby-2.0.0-p0/gems/json-1.7.7 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.0.0-p0/gems/json-1.7.7/ext/json/ext/generator/gem_make.out
其它 gem 错误信息一样,没有更详细错误信息,让我无从下手啊。 环境是 ubuntu。
解决了。因为想偷懒,在没有终止在跑的小站情况下升级(nginx+unicorn),可能是导致冲突,杀掉再跑的ruby程序后,再install就可以了。
谢谢各位了。