简体   繁体   中英

unable to install gem capybara-webkit

When we install the gem :$ gem install capybara-webkit, we got following error, Please help;

  $ 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

Please try this

first of all run this command

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

after that run this command

gem install capybara-webkit -v '0.11.0'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM