2011-12-19 84 views
1

我知道,還有另一種類型的問題,但目前爲止沒有任何幫助。捆綁不能建立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身份運行這兩個命令。在開發中它運作良好。幾天前它也運行良好。

任何幫助表示讚賞。

+0

您使用的是rvm嗎? – shajin 2011-12-22 16:30:38

+0

否(不在生產​​服務器上)。 – 2011-12-27 13:44:20

回答

1

我已經設法通過簡單地重新啓動服務器來解決此問題。知道原因真是太好了,但我想這太難以問了。

0

嘿,我得到了。我安裝了Xcode和重新啓動我的mac.Then我在軌取得了新的項目,並得到了同樣的錯誤,這個

**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的創業板安裝JSON -v「1.6。 3'它在我的情況下工作得很好。

+0

@lucapette謝謝你,我在這裏新:) – shiva 2011-12-22 17:07:39

相關問題