更新到 Maveriks 后在安装 gem autotest-fsevent
时遇到问题
这是我得到的错误;
Mellon:public lasdolphin$ sudo gem install autotest-fsevent
Building native extensions. This could take a while...
ERROR: Error installing autotest-fsevent:
ERROR: Failed to build gem native extension.
/Users/lasdolphin/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
extconf.rb:24:in `<main>': Darwin 13 is not (yet) supported (RuntimeError)
Gem files will remain installed in /Users/lasdolphin/.rvm/rubies/ruby-1.9.3- p448/lib/ruby/gems/1.9.1/gems/autotest-fsevent-0.2.8 for inspection.
Results logged to /Users/lasdolphin/.rvm/rubies/ruby-1.9.3- p448/lib/ruby/gems/1.9.1/gems/autotest-fsevent-0.2.8/ext/fsevent/gem_make.out
知道为什么会这样吗?
此问题已在 autotest-fsevent 的 0.2.9 版中修复
由于自动测试事件中的以下行,它失败了:
SDK_VERSION = { 9 => '10.5', 10 => '10.6', 11 => '10.7', 12 => '10.8' }[DARWIN_VERSION]
请注意,没有小牛队 (10.9) 的条目。你可以在 github 上临时分叉 autotest-fsevent 存储库,并为 Mavericks 添加必要的条目:
13 => '10.9'
这似乎至少让它建立起来。然后在 gemfile 中引用您的分叉:
gem 'autotest-fsevent', git: 'https://github.com/your-username/autotest-fsevent'
如果不使用捆绑程序,请直接从分支安装 Gem。
- 将 XCode 从 5.0 升级到 5.0.1
- 为 Xcode 安装最新的命令行工具 (OS X Mavericks) - 2013 年 10 月下旬
- 重建你的红宝石(就我而言,我使用 rbenv,所以我运行
rbenv install 2.0.0-p247
)
以上步骤解决了我的问题,希望对您有所帮助!
我尝试从XCode和站点安装"Comand行工具(OS X Maveriks)",但没有成功。
在另一篇文章中,我找到了适合我的可行解决方案,我找到了以下命令:
xcode-select --install
这个命令以我猜的正确方式下载并安装命令行工具。
之后,我可以毫无问题地安装我的所有新宝石。