2014-05-21 294 views
3

當我們安裝gem:$ gem install capybara-webkit時,出現以下錯誤,請幫忙;無法安裝寶石水豚-webkit

$ gem install capybara-webkit 
Building native extensions. This could take a while... 
ERROR: Error installing capybara-webkit: 
    ERROR: Failed to build gem native extension. 

    /home/zapbuild/.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/zapbuild/.rvm/gems/ruby-2.1.0/gems/capybara-webkit-1.1.1 for inspection. 
Results logged to /home/zapbuild/.rvm/gems/ruby-2.1.0/extensions/x86-linux/2.1.0/capybara-webkit-1.1.1/gem_make.out 
+0

是否遵循https://github.com/thoughtbot運行此命令

sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui 

/capybara-webkit/wiki /安裝-QT-and-compiling-capybara-webkit? (水豚-webkit需要QT) – tight

回答

4

請試試這個

首先是後運行此命令

gem install capybara-webkit -v '0.11.0'