【问题标题】:Unable to install gem autotest-fsevent on Mavericks无法在 Mavericks 上安装 gem autotest-fsevent
【发布时间】:2013-10-29 17:01:52
【问题描述】:

尝试安装 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", "~&gt; 0.2.8" 放入 Gemfile,但我得到了同样的错误。 可能是一个建议? 我使用 ruby​​ 2.0.0 和 rails 4.0.0。

【问题讨论】:

    标签: ruby-on-rails ruby macos gem osx-mavericks


    【解决方案1】:

    在 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 repo 并为 Mavericks 添加必要的条目:

    13 =&gt; '10.9

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

    【讨论】:

    • 仅供参考,他们的 github 对于 Mavericks 来说似乎是最新的,但 ruby​​gems 上的 gem 似乎不是最新的,所以如果你将 gemfile 行更改为 gem 'autotest-fsevent', git: 'https://github.com/svoop/autotest-fsevent.git' 它应该可以工作很好。
    • 希望我能对@Jimmy 发表更多评论。这为我节省了一天。
    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-16
      • 1970-01-01
      • 2013-11-10
      • 2014-06-17
      • 2013-11-06
      • 1970-01-01
      • 2012-08-28
      相关资源
      最近更新 更多