ruby-on-rails-3.1 – Rails不适用于Lion
发布时间:2020-12-17 04:04:52 所属栏目:百科 来源:网络整理
导读:我将Mac OSX版本更改为Lion.但是我无法创建Rails3应用程序. 我使用rvm 1.9.2并选择ruby 1.9.2-p290来创建Rails 3 app. 一切似乎都很好.当我开始创建一个新的应用程序 rails new new_my_app 我看到这个错误, Installing json (1.6.6) with native extensions
我将Mac OSX版本更改为Lion.但是我无法创建Rails3应用程序.
我使用rvm 1.9.2并选择ruby 1.9.2-p290来创建Rails 3 app. 一切似乎都很好.当我开始创建一个新的应用程序 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 我该怎么做才能解决这个问题? 谢谢. 解决方法
您需要从Xcode 4 for Lion中的首选项安装“命令行工具”.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |