安装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.outAny 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
发布评论