更新到 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 中修复
由于 autotest-fsevent 中的以下行而失败:
SDK_VERSION = { 9 => '10.5', 10 => '10.6', 11 => '10.7', 12 => '10.8' }[DARWIN_VERSION] https://github.com/svoop/autotest-fsevent/blob/master/ext/fsevent/extconf.rb#L22
请注意,没有小牛队 (10.9) 的条目。您可以暂时在 github 上分叉 autotest-fsevent 存储库,并添加 Mavericks 的必要条目:
13 => '10.9'
这似乎至少让它建立起来。然后在 gemfile 中引用你的 fork:
gem 'autotest-fsevent', git: 'https://github.com/your-username/autotest-fsevent'
如果您不使用捆绑器,直接从分支安装 gem https://stackoverflow.com/questions/2823492/install-gem-from-github-branch.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)