gem install autotest

编程入门 行业动态 更新时间:2024-10-10 04:28:52
本文介绍了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:'github / 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: 'github/your-username/autotest-fsevent'

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

更多推荐

gem install autotest

本文发布于:2023-10-30 05:09:23,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:gem   install   autotest

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!