我如何安装capybara-webkit 这里使用rails / ruby versios是3.2.12 / 1.9.3
Installing capybara-webkit 0.13.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/rguda/.rvm/rubies/ruby-1.9.3-p392-railsexpress/bin/ruby -r ./siteconf20151124-3867-3fgy4k.rb extconf.rb
Command 'qmake -spec linux-g++' not available
Makefile not found
Gem files will remain installed in /home/rguda/.rvm/gems/ruby-1.9.3-p392-railsexpress@rails3.2.12/gems/capybara-webkit-0.13.0 for inspection.
Results logged to /home/rguda/.rvm/gems/ruby-1.9.3-p392-railsexpress@rails3.2.12/extensions/x86_64-linux/1.9.1/capybara-webkit-0.13.0/gem_make.out
An error occurred while installing capybara-webkit (0.13.0), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '0.13.0'` succeeds before bundling.
答案 0 :(得分:1)
安装xcodebuild
,运行qt
和sudo apt-get install libqt4-dev
。
如果您有错误gem install capybara-webkit -v '0.13.0'
,则表示您必须安装以前版本的gem,因此请运行Error installing capybara-webkit: mime-types-data requires Ruby version >= 2.0