Skip to content

Instantly share code, notes, and snippets.

@Irio
Created February 15, 2012 13:45
Show Gist options
  • Save Irio/1835757 to your computer and use it in GitHub Desktop.
Save Irio/1835757 to your computer and use it in GitHub Desktop.
Solution for "Failed to build gem native extension" with capybara-webkit on Ubuntu
$ bundle install
Fetching source index for http://rubygems.org/
Using rake (0.9.2.2)
Using ZenTest (4.6.2)
Using RubyInline (3.11.1)
Using sexp_processor (3.0.10)
Using ParseTree (3.0.8)
Using multi_json (1.0.4)
Using activesupport (3.1.3)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.3)
Using erubis (2.7.0)
Using rack (1.3.6)
Using rack-cache (1.1)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.3)
Using actionpack (3.1.3)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.3.0)
Using actionmailer (3.1.3)
Using activeresource (3.1.3)
Using addressable (2.2.6)
Using ansi (1.4.2)
Using bcrypt-ruby (3.0.1)
Using nokogiri (1.5.0)
Using ffi (1.0.11)
Using childprocess (0.3.1)
Using rubyzip (0.9.5)
Using selenium-webdriver (2.19.0)
Using xpath (0.1.4)
Using capybara (1.1.2)
Using json (1.6.5)
Installing capybara-webkit (0.9.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/irio/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
Gem files will remain installed in /home/irio/.rvm/gems/ruby-1.9.2-p290@my_training/gems/capybara-webkit-0.9.0 for inspection.
Results logged to /home/irio/.rvm/gems/ruby-1.9.2-p290@my_training/gems/capybara-webkit-0.9.0/./gem_make.out
An error occured while installing capybara-webkit (0.9.0), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '0.9.0'` succeeds before bundling.
Solution:
$ sudo apt-get install libqt4-dev
@naive
Copy link

naive commented Jun 6, 2012

thx

@sherpc
Copy link

sherpc commented Jul 13, 2012

thx

@recurser
Copy link

perfect, thanks

@bragboy
Copy link

bragboy commented Aug 1, 2012

thank you

@ravs44
Copy link

ravs44 commented Aug 2, 2012

Thank a ton

@Laboratory
Copy link

+1, thx

Copy link

ghost commented Dec 28, 2012

+1 thx

Copy link

ghost commented Dec 11, 2013

+1, many thanks :)

@tanmaybagchi85
Copy link

sorry, i am asking same question..

i am getting same error even i installed libqt4-dev..
please help me

@akapronik
Copy link

+1 tnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment