无法使用 Xcode 4.3 安装 autotest-fsevent gem
更新到 Xcode 4.3(删除了旧版本的 Xcode)后,我无法安装 autotest-fsevent gem。命令行工具通过“首选项”>“安装”下载>>组件选项卡。
osx 10.7.3、rvm 1.10.2、ruby 1.9.3-rc1、bundler 1.0.22
$ bundle
Installing autotest-fsevent (0.2.7) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/doc/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby extconf.rb
extconf.rb:36:in `<main>': Xcode not found - see README for assistance (RuntimeError)
Gem files will remain installed in /Users/doc/.rvm/gems/ruby-1.9.3-rc1@global/gems/autotest-fsevent-0.2.7 for inspection.
Results logged to /Users/doc/.rvm/gems/ruby-1.9.3-rc1@global/gems/autotest-fsevent-0.2.7/ext/fsevent/gem_make.out
An error occured while installing autotest-fsevent (0.2.7), and Bundler cannot continue.
Make sure that `gem install autotest-fsevent -v '0.2.7'` succeeds before bundling.
自述文件仅表明需要 Xcode。
我似乎选择了正确的 Xcode.app:
$ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
还有其他人遇到此问题吗?有什么想法可以解决这个问题吗?
I've been unable to install the autotest-fsevent gem after updating to Xcode 4.3 (removed old versions of Xcode). Command line tools were installed via Preferences > Downloads > Components tab.
osx 10.7.3, rvm 1.10.2, ruby 1.9.3-rc1, bundler 1.0.22
$ bundle
Installing autotest-fsevent (0.2.7) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/doc/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby extconf.rb
extconf.rb:36:in `<main>': Xcode not found - see README for assistance (RuntimeError)
Gem files will remain installed in /Users/doc/.rvm/gems/ruby-1.9.3-rc1@global/gems/autotest-fsevent-0.2.7 for inspection.
Results logged to /Users/doc/.rvm/gems/ruby-1.9.3-rc1@global/gems/autotest-fsevent-0.2.7/ext/fsevent/gem_make.out
An error occured while installing autotest-fsevent (0.2.7), and Bundler cannot continue.
Make sure that `gem install autotest-fsevent -v '0.2.7'` succeeds before bundling.
The README simply indicates Xcode is required.
I appear to have the correct Xcode.app selected:
$ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
Anyone else have this problem? Any ideas how to work around this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,Xcode 路径被硬编码在 gem 文件中:
ext/fsevent/extconf.rb:
Xcode 4.3 现在作为应用程序安装在 /Applications 中。另一位 github 用户 (fxposter) 发现了同样的问题并发布了 拉请求比我早几个小时。提议的更改已合并到 gem 中,并且 v0.2.8 已发布。
It turns out the Xcode path is hard-coded in the gem file:
ext/fsevent/extconf.rb:
Xcode 4.3 is now installed as an application in /Applications. Another github user (fxposter) found the same problem and issued a pull request a few hours before mine. The proposed changes have been merged into the gem and v0.2.8 has been released.