I am new to ruby, but while trying to install capybara to run test on my system I get the following error. Im running OSX
my_app$ gem install capybara-webkit
I am using Yosemite and following commands has fixed my issue.
brew install qt
brew linkapps qt
gem install capybara-webkit
Was having exactly this problem trying to install capybara-webdriver on CentOS 6 after installing QT.
Fixed the problem by adding the following to my PATH environment variable
/usr/lib64/qt4/bin/
On OSX Mavericks 10.9, qt5 does not install qmake. This post was the only thing that worked for me.
Step 1: Download Qt 5.2.0-beta-1-clang HERE.
Step 2: Install it and include the Src files.
Step 3: Symlink qmake into your /bin directory from the location where you installed Qt. The default location is in your home directory. Open a shell and do something like:
ln -s /Path/to/where/you/installed/Qt5.2/5.2.0-beta1/clang_64/bin/qmake /usr/local/bin/qmake
Then gem install capybara-webkit.
Try installing libqt via homebrew.
$ brew install qt@5.5
brew install qt@5.5
and then
gem install capybara-webkit -v '0.7.2'
-v 0.7.2 is to select version project is asking you to install. See that installing qt from http://developer.qt.nokia.com/wiki/Support_for_Mac_OS_X requires to set PATH variable.
Here are the complete steps to install Capybara-webkit
in all the OS
Install QT - http://qt-project.org/downloads
brew update
brew install qt
ln -s /usr/local/Cellar/qt5/5.4.1/bin/qmake /usr/local/bin/qmake
sudo port install qt4-mac-devel
Reference: Capybara Installation