Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing gem capybara-webkit

Tags:

ruby

gem

capybara

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
like image 850
eiu165 Avatar asked Dec 03 '11 05:12

eiu165


3 Answers

Try installing libqt via homebrew.

$ brew install [email protected]
like image 100
jefflunt Avatar answered Nov 07 '22 19:11

jefflunt


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.

like image 31
Suborx Avatar answered Nov 07 '22 20:11

Suborx


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.

like image 22
sites Avatar answered Nov 07 '22 20:11

sites