Error installing gem capybara-webkit

后端 未结 14 657
面向向阳花
面向向阳花 2020-12-23 10:43

I am new to ruby, but while trying to install capybara to run test on my system I get the following error. Im running OSX

my_app$ gem install capybara-webkit         


        
相关标签:
14条回答
  • 2020-12-23 11:45

    For fedora

    yum install qt-webkit-devel
    export QMAKE=/usr/bin/qmake-qt4
    gem install capybara-webkit
    
    0 讨论(0)
  • 2020-12-23 11:49

    macOS Sierra 10.12, El Capitan 10.11 and Yosemite 10.10

    Install with either homebrew or macports Homebrew

    Qt 5.5 is the last version of Qt that capybara-webkit will support. The Qt project has dropped the WebKit bindings from binary releases in 5.6.

    Install Qt 5.5 with homebrew:

    brew install qt@5.5
    

    The Homebrew formula for qt55 is keg only which means binaries like qmake will not be symlinked into your /usr/local/bin directory and therefore will not be available for capybara-webkit.

    To force Homebrew to symlink those binaries into your /usr/local/bin directory you can run:

    brew link --force qt55
    

    After running this command you should get the following output:

    $ which qmake
    /usr/local/bin/qmake
    

    Macports

    Install qt5 with macports:

    sudo port install qt5 qt5-qtwebkit # It's not qt5-mac anymore.
    

    The default location for qt5's qmake is /opt/local/libexec/qt5/bin/qmake. If the qmake on path is different, you can indicate the correct one with QMAKE environment variable.

    QMAKE=/opt/local/libexec/qt5/bin/qmake gem install capybara-webkit
    
    0 讨论(0)
提交回复
热议问题