尝试安装gem autotest-fsevent已经两天了,但我收到此错误消息:
Building native extensions. This could take a while...
ERROR: Error installing autotest-fsevent:
ERROR: Failed to build gem native extension.
/Users/samolo/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
extconf.rb:24:in `<main>': Darwin 13 is not (yet) supported (RuntimeError)
Gem files will remain installed in /Users/samolo/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/autotest-fsevent-0.2.8 for inspection.
Results logged to /Users/samolo/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/autotest-fsevent-0.2.8/ext/fsevent/gem_make.out
我尝试了这个解决方案:“gem install autotest-fsevent failing after update to macosx mavericks”,但没有任何改变。我也试过把gem "autotest-fsevent", "~> 0.2.8"
放到Gemfile中,但我得到了同样的错误。
可能是个建议?
我使用ruby 2.0.0和rails 4.0.0。
答案 0 :(得分:1)
修正了autotest-fsevent版本0.2.9
由于autotest-fsevent中的以下行而失败:
SDK_VERSION = { 9 => '10.5', 10 => '10.6', 11 => '10.7', 12 => '10.8' }[DARWIN_VERSION]
请注意,小牛队没有进球(10.9)。您可以在github上分叉autotest-fsevent repo并为Mavericks添加必要的条目:
13 => '10.9
似乎至少让它建立起来。然后在gemfile中引用你的fork。
答案 1 :(得分:0)
为Mavericks 10.9下载最新版本的Xcode修复了autotest-fsevent的安装问题。