An error occurred while installing capybara-webkit (0.14.2)

```bash bundle install 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
```bash Terminal
sudo apt-get install qt4-qmake libqt4-dev

macos ```bash Terminal brew update brew install qt



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

Comments