Ivan
Ivan

Reputation: 2481

Ruby's capybara-webkit installer cannot build native extension

When trying to install capybara-webkit

gem install capybara-webkit

I get this error:

Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit: ERROR: Failed to build gem native extension.

C:/Ruby192/bin/ruby.exe extconf.rb

Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.4.1 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.4.1/./gem_make.out

I'm on Windows 7 64bit and I'm installing it so I can use the compressor script bundled with Blueprint CSS.

I had no issues until now (everything was pretty clear even when JSON needed Devkit to be installed, or when I had to install the bundler gem to get the bundle install working), and this is just where I am stuck.

Upvotes: 1

Views: 3320

Answers (3)

tuttiq
tuttiq

Reputation: 101

This solved for me om OS X yosemite

brew link --force qt5

Upvotes: 0

SullX
SullX

Reputation: 214

I had a similar error when running

bundle install

with a Gemfile that contained capybara-webkit. I ran

bundle install --without test

instead and this worked. Maybe not applicable but perhaps for someone who encounters this issue from bundling.

Upvotes: 2

Ivan
Ivan

Reputation: 2481

Al last I didn't solve the capybara-webkit installation, but a simple use of "bundle install --without test" did what I was trying to do (and what was my last aim): use the Blueprint CSS compressor script

Upvotes: 0

Related Questions