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
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
/Users/joe/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
Gem files will remain installed in /Users/joe/.rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.7.2 for inspection.
Results logged to /Users/joe/.rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.7.2/./gem_make.out
here are results from gem_make.out
/Users/joe/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
Try installing libqt via homebrew.
$ brew install [email protected]
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.
brew install [email protected]
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With