【发布时间】:2012-04-20 07:16:44
【问题描述】:
我将我的 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
我应该怎么做才能解决这个问题?
谢谢。
【问题讨论】:
标签: ruby-on-rails-3.1 osx-lion rvm