我知道,这是另一个类似的问题,但到目前为止没有任何帮助。
当我在生产服务器上运行bundle install
时,我收到以下错误:
...
Installing json (1.6.3) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
Gem files will remain installed in /home/onblimp/onblimp/releases/20111213131738/RAILS_ENV=production/ruby/1.9.1/gems/json-1.6.3 for inspection.
Results logged to /home/onblimp/onblimp/releases/20111213131738/RAILS_ENV=production/ruby/1.9.1/gems/json-1.6.3/ext/json/ext/parser/gem_make.out
An error occured while installing json (1.6.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.6.3'` succeeds before bundling.
当我运行gem install json -v '1.6.3'
时,它会毫无错误地安装。我正在以root身份运行这两个命令。在开发中它运作良好。几天前它也运作良好。
感谢任何帮助。
答案 0 :(得分:1)
' ave设法通过简单地重新启动服务器来解决这个问题。知道原因会很棒,但我想这太过分了。
答案 1 :(得分:0)
**Errno::EPERM: Operation not permitted
An error occured while installing json (1.6.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.6.3'` succeeds before bundling**
我刚刚做了 sudo gem install json -v'1.6.3'它在我的情况下运行良好。