gem install autotest-fsevent在更新到macosx mavericks后失败 [英] gem install autotest-fsevent failing after update to macosx mavericks

查看:125
本文介绍了gem install autotest-fsevent在更新到macosx mavericks后失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装gem autotest-fsevent



出现问题后,更新到Maveriks以下是我得到的错误;

  Mellon:public lasdolphin $ sudo gem install autotest-fsevent 
构建本机扩展。这可能需要一段时间...
错误:安装autotest-fsevent时出错:
错误:无法构建gem本机扩展。

/Users/lasdolphin/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
extconf.rb:24:在< main>内: Darwin 13尚未支持(RuntimeError)


Gem文件将保持安装在/Users/lasdolphin/.rvm/rubies/ruby-1.9.3-p448/lib/ruby /gems/1.9.1/gems/autotest-fsevent-0.2.8进行检查。
记录到/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版已经修复 p 因为autotest-fsevent中包含以下行:

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



请注意,小牛队没有条目(10.9)。您可以临时在github上分发autotest-fsevent回购并添加小牛必需的条目:

13 => '10 .9'



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

  gem'autotest-fsevent',git:'https://github.com / your-username / autotest-fsevent'

如果您不使用捆绑器,直接从分支安装gem


After update to Maveriks having problems installing gem autotest-fsevent

Here is the error I get;

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

Any idea why this is happening?

解决方案

This has been fixed in version 0.2.9 of autotest-fsevent

It fails because of the following line in autotest-fsevent:

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

Notice that there is no entry for Mavericks (10.9). You can temporarily fork the autotest-fsevent repo on github and add in the necessary entry for Mavericks:

13 => '10.9'

which seems to at least let it build. Then refer to your fork in your gemfile:

gem 'autotest-fsevent', git: 'https://github.com/your-username/autotest-fsevent'

If you're not using bundler, install the gem from the branch directly.

这篇关于gem install autotest-fsevent在更新到macosx mavericks后失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆