Installing capybara-webkit (0.11.0) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks!
/Users/me/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/Users/me/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
/Users/me/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/spec_set.rb:87:in `block in materialize': Could not find capybara-webkit-0.11.0 in any of the sources (Bundler::GemNotFound)当我尝试安装capybara-webkit gem时,它显示找不到capybara-webkit gem。我已经安装了qt4:
$ sudo port list installed | grep qt4
qt4-mac @4.7.4 aqua/qt4-mac你知道问题出在哪里吗?
发布于 2012-05-06 12:33:12
我会尝试使用brew而不是port来安装qt。
我现在已经在我的mac上安装了capybara-webkit (版本0.11.0,就像你试图安装的那样),而且它安装得很好。
但是,我的机器上没有端口。我现在使用brew来安装几乎所有的东西。
所以
brew install qt可能会有所不同。
以下是Thoughtbot团队(构建和支持capybara-webkit的人员)使用的安装脚本的链接--您可以看到它也使用brew安装qt:
https://github.com/thoughtbot/laptop/blob/master/mac
echo "Installing QT, used by Capybara Webkit for headless Javascript integration testing ..."
brew install qt发布于 2013-09-10 07:24:48
我在这个问题上来得很晚,但我也遇到了类似的问题,我发现问题是我安装了Macports 和 Homebrew。
所以我卸载了Macports:
sudo port -fp uninstall installed
更新了我的自制软件:
brew update (这需要一段时间)
然后在仅安装brew的情况下安装QT,要求从源代码进行构建:
brew install qt --build-from-source (大概花了25分钟才完成)
如果您现在尝试使用qmake -v,您可能会得到一个错误,提示qmake不在/opt/local/bin中。这是因为Homebrew在/usr/local/bin中安装了QT,您必须使用以下命令将其添加到您的路径中:
export PATH="/usr/local/bin:$PATH"
最后,我花了大约3个小时才找到解决方案,但它真的很有效。
我希望这对其他有同样问题的人有所帮助。
https://stackoverflow.com/questions/10468076
复制相似问题