osx 10.7.3,rvm 1.10.2,ruby 1.9.3-rc1,bundler 1.0.22
$bundleInstalling 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.outAn 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.
README只是表示需要Xcode.
我似乎选择了正确的Xcode.app:
$xcode-select -print-path/Applications/Xcode.app/Contents/Developer
其他人有这个问题吗?任何想法如何解决这个问题?
解决方法 事实证明,Xcode路径在gem文件中是硬编码的:EXT / fsevent / extconf.rb:
... elsif file.exists?('/Developer/Applications/Xcode.app') `CFLAGS='-isysroot /Developer/SDKs/MacOSX#{SDK_VERSION}.sdk -mmacosx-version-min=#{SDK_VERSION}' /usr/bin/gcc -framework CoreServices -o "#{GEM_ROOT}/bin/fsevent_sleep" fsevent_sleep.c` raise "\e[1;31mCompilation of fsevent_sleep binary Failed - see README for assistance\e[0m" unless file.executable?("#{GEM_ROOT}/bin/fsevent_sleep")...
Xcode 4.3现在作为/ Applications中的应用程序安装.另一个github用户(fxposter)发现了同样的问题,并在我的前几个小时发出了pull request.建议的更改已合并到gem中,v0.2.8已经发布.
总结以上是内存溢出为你收集整理的无法使用Xcode 4.3安装autotest-fsevent gem全部内容,希望文章能够帮你解决无法使用Xcode 4.3安装autotest-fsevent gem所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)