An Error Occurred While Installing Capybara-webkit (0.14.2)

bundle install
1
2
3
4
5
6
7
8
9
10
11
Installing capybara-webkit (0.14.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /home/xxx/.rvm/rubies/ruby-1.9.3-p385/bin/ruby extconf.rb
Command 'qmake -spec linux-g++' not available


Gem files will remain installed in /home/xxx/.rvm/gems/ruby-1.9.3-p385/gems/capybara-webkit-0.14.2 for inspection.
Results logged to /home/xxx/.rvm/gems/ruby-1.9.3-p385/gems/capybara-webkit-0.14.2/./gem_make.out
An error occurred while installing capybara-webkit (0.14.2), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '0.14.2'` succeeds before bundling.

解决方式:

ubuntu

Terminal
1
sudo apt-get install qt4-qmake libqt4-dev

macos

Terminal
1
2
brew update
brew install qt

参考: https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit

原文地址:http://dlj.bz/Fdbjrd

Comments