Error installing gem capybara-webkit

后端 未结 14 658
面向向阳花
面向向阳花 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:33

    I am using Yosemite and following commands has fixed my issue.

    brew install qt
    brew linkapps qt
    gem install capybara-webkit
    
    0 讨论(0)
  • 2020-12-23 11:34

    Was having exactly this problem trying to install capybara-webdriver on CentOS 6 after installing QT.

    Fixed the problem by adding the following to my PATH environment variable

    /usr/lib64/qt4/bin/
    
    0 讨论(0)
  • 2020-12-23 11:34

    On OSX Mavericks 10.9, qt5 does not install qmake. This post was the only thing that worked for me.

    Step 1: Download Qt 5.2.0-beta-1-clang HERE.

    Step 2: Install it and include the Src files.

    Step 3: Symlink qmake into your /bin directory from the location where you installed Qt. The default location is in your home directory. Open a shell and do something like:

     ln -s /Path/to/where/you/installed/Qt5.2/5.2.0-beta1/clang_64/bin/qmake /usr/local/bin/qmake
    

    Then gem install capybara-webkit.

    0 讨论(0)
  • 2020-12-23 11:39

    Try installing libqt via homebrew.

    $ brew install qt@5.5
    
    0 讨论(0)
  • 2020-12-23 11:39
    brew install qt@5.5
    

    and then

    gem install capybara-webkit -v '0.7.2'
    

    -v 0.7.2 is to select version project is asking you to install. See that installing qt from http://developer.qt.nokia.com/wiki/Support_for_Mac_OS_X requires to set PATH variable.

    0 讨论(0)
  • 2020-12-23 11:39

    Here are the complete steps to install Capybara-webkit in all the OS

    1. Install QT - http://qt-project.org/downloads

      brew update brew install qt

    2. ln -s /usr/local/Cellar/qt5/5.4.1/bin/qmake /usr/local/bin/qmake

    3. sudo port install qt4-mac-devel

    Reference: Capybara Installation

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