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
知道问题是什么吗?
答案 0 :(得分:1)
我尝试使用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
答案 1 :(得分:0)
我在这个问题上已经很晚了,但是我遇到了类似的问题并且发现问题是我安装了Macports 和 Homebrew。
所以我卸载了Macports:
sudo port -fp uninstall installed
更新了我的自制软件:
brew update
(花了一段时间)
然后安装了QT,只安装了brew,要求从源代码构建:
brew install qt --build-from-source
(花了25分钟才完成)
如果您现在尝试qmake -v
,则可能会收到错误消息,指出qmake不在/opt/local/bin
中。这是因为Homebrew在/usr/local/bin
中安装了QT,你必须使用下一个命令将它添加到你的PATH中:
export PATH="/usr/local/bin:$PATH"
最后我花了3个小时才找到解决方案,但它就像一个魅力。
我希望这有助于其他人遇到同样的问题。