Error creating capybara-webkit

I try to install capybara-webkit on ubuntu 12.04, but I get this error:

$ gem install capybara-webkit -v '1.0.0' Building native extensions. This could take a while... ERROR: Error installing capybara-webkit: ERROR: Failed to build gem native extension. /home/samir/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb Command 'qmake -spec linux-g++' not available Makefile not found Gem files will remain installed in /home/samir/.rvm/gems/ ruby-2.1.0@dcaclab /gems/capybara-webkit-1.0.0 for inspection. Results logged to /home/samir/.rvm/gems/ ruby-2.1.0@dcaclab /extensions/x86-linux/2.1.0/capybara-webkit-1.0.0/gem_make.out 

Any idea?

+7
capybara-webkit
source share
2 answers

You need qmake that comes from QT (capybara-webkit dependency).

The capybara-webkit wiki has instructions for installing Qt and capybara-webkit on various systems: https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit

+14
source share

I had a similar problem with capybara-webkit. I tried all the steps mentioned in the wiki https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit , but that didn't help me.

Then I looked at this question https://github.com/thoughtbot/capybara-webkit/issues/583 .

My brew doctor complained that my version of xcode was deprecated. I have to update it. In addition, I have to take software updates for command line tools . As soon as I updated both options, installing capybara-webkit went smoothly.

This problem is system specific. Thus, one answer may not solve the problem. But keeping a brew doctor happy is usually good.

0
source share

All Articles