我將我的Mac OSX版本更改爲Lion。但是我不能創建一個Rails3應用程序。Rails無法在Lion上工作
我使用rvm 1.9.2,我選擇了ruby 1.9.2-p290來創建Rails 3應用程序。
一切似乎okey。當我開始創建一個新的應用程序
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 2012-10-03 15:01:10
這個鏈接對我來說是一個新鮮的osx山獅安裝,給了我這個錯誤。 – Catfish 2012-12-26 04:05:33
與@Catfish相同。思想的命令行工具過來了,我的Time Machine在一個新的SSD上恢復了操作系統。它沒。解決了,謝謝! – 2013-03-11 22:23:31