ERROR: Error installing capybara-webkit:

后端 未结 7 601
醉酒成梦
醉酒成梦 2020-12-12 14:47

Any suggestions on how to fix?

gem install capybara-webkit -v \'0.11.0\'
Building native extensions.  This could take a while...
ERROR:  Error installing cap         


        
相关标签:
7条回答
  • 2020-12-12 15:02

    If you are in Ubuntu do

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

    If you are on Mac

    brew install qt
    

    and then

    gem install capybara-webkit -v '0.11.0'
    
    0 讨论(0)
  • 2020-12-12 15:06

    You are probably missing the qt libraries. See the capybara-webkit wiki for instructions on installing them for your platform.

    0 讨论(0)
  • 2020-12-12 15:08

    For Ubuntu 20.04 you can install qt5-default package

    sudo apt-get install g++ qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x
    

    Then install the gem with the required version:

    gem install capybara-webkit -v '1.11.0'
    
    0 讨论(0)
  • 2020-12-12 15:19

    For Ubuntu 16.04

    sudo apt-get install qt-sdk

    Followed by

    gem install capybara-webkit -v '1.11.0' or replace with whatever version you want to install.

    0 讨论(0)
  • 2020-12-12 15:23

    brew install qt will only install (as of August 4, 2015) 4.8.6, which gives you this message.

    WARNING: The next major version of capybara-webkit will require at least version 5.0 of Qt. You're using version 4.8.6.
    

    Instead, if you do

    brew install qt5
    brew link --force qt5
    

    you won't get that error.

    0 讨论(0)
  • 2020-12-12 15:26

    On fedora is a bit more complicated. I did the next which takes a while:

    $ sudo dnf install make gcc-c++ gdb qt5*-devel qt-creator
    $ export QMAKE=/usr/bin/qmake-qt5
    $ gem install capybara-webkit
    

    Then it worked!

    See more info on capybara-webkit wiki

    0 讨论(0)
提交回复
热议问题