安装Capybara-webkit的错误

时间:2014-08-14 14:34:53

标签: ruby-on-rails qt homebrew capybara-webkit

我正在尝试安装capybara-webkit gem并在OSX 10.9.4中收到以下错误:

➜  hours git:(development) gem install capybara-webkit -v '1.2.0' 
Building native extensions.  This could take a while...
ERROR:  Error installing capybara-webkit:
ERROR: Failed to build gem native extension.

/Users/macbook/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
Command 'qmake -spec macx-g++ ' not available

Makefile not found

Gem files will remain installed in /Users/macbook/.rvm/gems/ruby-2.1.2/gems/capybara-webkit-1.2.0 for inspection.
Results logged to /Users/macbook/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-13/2.1.0-static/capybara-webkit-1.2.0/gem_make.out

因此,研究这个问题似乎解决方案是运行" brew install qt"。当我跑步时,我得到以下内容:

➜  hours git:(development) brew install qt 
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-open

curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz 

我已经检查过,在我的Imac上找不到MacPorts或Fink。

我在这里缺少什么?

1 个答案:

答案 0 :(得分:1)

自4月以来,Homebrew的价格为4.8.6。请brew update && brew upgrade再次尝试brew install qt