Mac OSXのバージョンをLionに変更しました。しかし、私はRails3アプリケーションを作成することはできません。レールがライオンで動作しない
私はrvm 1.9.2を使って、Ruby 1.9.2-p290を選択してRails 3アプリを作成します。
すべてがおかしいです。私は
rails new new_my_app
に新しいアプリを作成するために起動すると、私はこのエラーを参照してください、
Installing json (1.6.6) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/ender/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
creating Makefile
make
sh: make: command not found
Gem files will remain installed in /Users/ender/.rvm/gems/ruby-1.9.2-p290/gems/json-1.6.6 for inspection.
Results logged to /Users/ender/.rvm/gems/ruby-1.9.2-p290/gems/json-1.6.6/ext/json/ext/generator/gem_make.out
An error occured while installing json (1.6.6), and Bundler cannot continue.
Make sure that `gem install json -v '1.6.6'` succeeds before bundling.
私は
gem install json -v '1.6.6'
をしようとすると、私はこのエラーに直面
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/Users/ender/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
creating Makefile
make
sh: make: command not found
Gem files will remain installed in /Users/ender/.rvm/gems/ruby-1.9.2-p290/gems/json-1.6.6 for inspection.
Results logged to /Users/ender/.rvm/gems/ruby-1.9.2-p290/gems/json-1.6.6/ext/json/ext/generator/gem_make.out
どうすべき私はこの問題を解決するのですか?
ありがとうございました。
これとこれ - > http://stackoverflow.com/questions/9027772/failed-to-build-json-1-6-3-with-native-extension-after-i-installed-xcode-4 -2 最後に、私のバンドルが再び動作しました! – Philip
このリンクは私にこのエラーを与えていた新鮮なosxマウンテンライオンに私のために働いた。 – Catfish
@Catfishと同じです。思考のコマンドラインツールは、私のTime Machineで新しいSSD上にOSを復元しました。それはしませんでした。解決しました、ありがとう! –