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
For fedora
yum install qt-webkit-devel
export QMAKE=/usr/bin/qmake-qt4
gem install capybara-webkit
Install with either homebrew or macports Homebrew
Qt 5.5 is the last version of Qt that capybara-webkit will support. The Qt project has dropped the WebKit bindings from binary releases in 5.6.
Install Qt 5.5 with homebrew:
brew install qt@5.5
The Homebrew formula for qt55 is keg only which means binaries like qmake will not be symlinked into your /usr/local/bin directory and therefore will not be available for capybara-webkit.
To force Homebrew to symlink those binaries into your /usr/local/bin directory you can run:
brew link --force qt55
After running this command you should get the following output:
$ which qmake
/usr/local/bin/qmake
Macports
Install qt5 with macports:
sudo port install qt5 qt5-qtwebkit # It's not qt5-mac anymore.
The default location for qt5's qmake is /opt/local/libexec/qt5/bin/qmake. If the qmake on path is different, you can indicate the correct one with QMAKE environment variable.
QMAKE=/opt/local/libexec/qt5/bin/qmake gem install capybara-webkit