Mac OS 10.6.6 上的 Heroku 安装故障排除
这个MBP是全新的。我安装了 Rails,一切进展顺利。现在 Heroku 在安装时给我这个错误:
MacBook-Pro:~ caselas$ sudo gem install heroku 密码: 构建本机扩展。这可能需要一段时间... 错误:安装 heroku 时出错: 错误:无法构建 gem 本机扩展。
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb 在 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h 中找不到 ruby 的头文件
Gem 文件将保留安装在 /Library/Ruby/Gems/1.8 中/gems/json-1.4.6 用于检查。 结果记录到 /Library/Ruby/Gems/1.8/gems/json-1.4.6/ext/json/ext/generator/gem_make.out
这是这个,以帮助诊断:
MacBook-Pro:~ caselas$ gem 环境 RubyGems 环境: - 红宝石版本:1.5.0 - Ruby 版本:1.8.7(2009-06-12 补丁级别 174)[universal-darwin10.0] - 安装目录:/Library/Ruby/Gems/1.8 - RUBY 可执行文件:/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby - 可执行目录:/usr/bin - 红宝石平台: - 红宝石 - 通用达尔文-10 - 宝石路径: - /图书馆/红宝石/宝石/1.8 - /Users/caselas/.gem/ruby/1.8 - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 - 宝石配置: - :update_sources =>真的 - :详细=>真的 - :基准=>错误的 - :回溯=>错误的 - :bulk_threshold => 1000 - 远程来源: - http://rubygems.org/
有什么想法吗?
This MBP is brand new. I installed Rails, and it went swimmingly. Now Heroku is giving me this error on install:
MacBook-Pro:~ caselas$ sudo gem install heroku
Password:
Building native extensions. This could take a while...
ERROR: Error installing heroku:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/json-1.4.6 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/json-1.4.6/ext/json/ext/generator/gem_make.out
Here is this, to help diagnos:
MacBook-Pro:~ caselas$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.5.0
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-10
- GEM PATHS:
- /Library/Ruby/Gems/1.8
- /Users/caselas/.gem/ruby/1.8
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在安装过程中安装了 Xcode 和“Unix Development”选项吗?
约翰.
have you installed Xcode and the 'Unix Development' option during the install?
John.