2013-10-29 44 views
0

它已经两天试图安装宝石自动测试-fsevent,但我收到此错误信息:无法安装在小牛宝石自动测试,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。

回答

1

修正了自动检测,fsevent的0.2.9版本

它失败,因为在自动测试,fsevent下面一行:

SDK_VERSION = { 9 => '10.5', 10 => '10.6', 11 => '10.7', 12 => '10.8' }[DARWIN_VERSION]

发现,有对小牛没有条目( 10.9)。您可以派生自动测试,fsevent回购在github上,添加在小牛必要的条目:

13 => '10.9

这似乎至少让它建立。然后在你的gemfile中引用你的fork。

+0

只是一个FYI他们的github似乎是最新的小牛,但在rubygems上的宝石似乎不是最新的,所以如果你改变你的gemfile行到这个'gem'autotest-fsevent',git:' https:// github.com/svoop/autotest-fsevent.git''它应该可以正常工作。 – Jimmy

0

下载最新版本的Xcode for Mavericks 10.9修复了autotest-fsevent的安装问题。