私は知っていますが、この種の別の質問ですが、これまで何も助けてくれませんでした。バンドルは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'
を実行すると、それはエラーなしでインストールされます。私は両方のコマンドをルートとして実行しています。開発中はうまく動作します。数日前にもうまくいきました。
何か助けていただければ幸いです。
rvmを使用していますか? – shajin
いいえ(本番サーバーにはありません)。 –