Any suggestions on how to fix?
gem install capybara-webkit -v '0.11.0'
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
/home/durrantm/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
sh: qmake: not found
Gem files will remain installed in /home/durrantm/.rvm/gems/ruby-1.9.3-p194/gems/capybara-webkit-0.11.0 for inspection.
Results logged to /home/durrantm/.rvm/gems/ruby-1.9.3-p194/gems/capybara-webkit-0.11.0/./gem_make.out
You are probably missing the qt libraries. See the capybara-webkit wiki for instructions on installing them for your platform.
If you are in Ubuntu do
If you are on Mac
and then
For Ubuntu 16.04
sudo apt-get install qt-sdk
Followed by
gem install capybara-webkit -v '1.11.0'
or replace with whatever version you want to install.brew install qt
will only install (as of August 4, 2015)4.8.6
, which gives you this message.Instead, if you do
you won't get that error.
On El Capitan or Yosemite, you may need to do
brew install qt55
according to the doc here.