ruby - 更新到 macos mavericks 后,gem 安装 autotest-fsevent 失败

标签 ruby macos gem osx-mavericks

更新到 Maveriks 后安装 gem autotest-fsevent 出现问题

这是我得到的错误;

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

知道为什么会这样吗?

最佳答案

这已在 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 存储库并添加 Mavericks 的必要条目:

13 => '10.9'

这似乎至少让它得以建立。然后在你的 gemfile 中引用你的分支:

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

如果您没有使用 bundler ,install the gem from the branch directly .

关于ruby - 更新到 macos mavericks 后,gem 安装 autotest-fsevent 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19553436/

相关文章:

objective-c - 自定义 NSCell drawWithFrame :inView method not getting invoked in OSX 10. 8

linux - mac 终端的 Bashrc 颜色

ruby-on-rails - rake - rake 构建不适用于 tripit/slate 文档

gem - 安装后无法使用rhc,用于openshift

ruby-on-rails - 在同一 gem 集中的不同版本的 rails 之间切换

mysql - rails : "Mysql2::Error: Incorrect string value:" when trying to save "params.inspect"

mysql - Ruby 和 mysql2-迭代结果集中的行子集

ruby - 从另一个文件调用模块

macos - PDF 中的页数 - Mac

arrays - All_else 方法 (Ruby)