更新到 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]
请注意,没有 Mavericks (10.9) 的条目。您可以暂时在 github 上 fork autotest-fsevent 存储库并添加 Mavericks 的必要条目:
13 => '10.9'
这似乎至少让它得以建立。然后在你的 gemfile 中引用你的分支:
gem 'autotest-fsevent', git: 'https://github.com/your-username/autotest-fsevent'
如果您没有使用 bundler ,install the gem from the branch directly .
关于ruby - 更新到 macos mavericks 后,gem 安装 autotest-fsevent 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19553436/