我知道,還有另一種類型的問題,但目前爲止沒有任何幫助。捆綁不能建立gem原生擴展而gem可以 - json
當我生產服務器我得到下面的錯誤上運行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身份運行這兩個命令。在開發中它運作良好。幾天前它也運行良好。
任何幫助表示讚賞。
您使用的是rvm嗎? – shajin 2011-12-22 16:30:38
否(不在生產服務器上)。 – 2011-12-27 13:44:20