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 was able to get qt and capybara-webkit installed and working on OS X. I had to install Xcode so the build for
gem install capybara-webkit
would finish.
I also set this in my environment
Capybara.javascript_driver = :webkit
brew install qt5
to get latest qt.
The docs for it say that it conflicts with qt4, so be sure to remove that first with
brew uninstall [old qt]
Then it needs to be symlinked with
brew link --force qt5
I've got error in my mac OS X 10.12, and this fixed the problem.
brew install qt5
brew link --force qt5
gem install capybara-webkit
QT was the answer for me, thougtbot provide a comprehensive installation options here:
https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit
Generally depending on where you have home brew, this worked for me:
brew update
brew install qt
gem install capybara-webkit
For Debian & Ubuntu
sudo apt-get update
sudo apt-get install g++ qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x
You can find other ways to install Qt here
Solution for Linux.
Ubuntu
sudo apt-get install libqt4-dev libqtwebkit-dev
Debian Stable
sudo apt-get install libqt4-dev
Fedora
yum install qt-webkit-devel
Fedora 16
yum install qtwebkit-devel
This works for me maybe it will be also helpful for somebody.
For OSX, I had to
brew install qt
and then
sudo gem install capybara-webkit -v '0.7.2'
without sudo it would error