Error installing gem capybara-webkit

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

    I was able to get qt and capybara-webkit installed and working on OS X. I had to install Xcode so the build for

    gem install capybara-webkit

    would finish.

    I also set this in my environment

    Capybara.javascript_driver = :webkit

    brew install qt5 to get latest qt.

    The docs for it say that it conflicts with qt4, so be sure to remove that first with

    brew uninstall [old qt]

    Then it needs to be symlinked with

    brew link --force qt5

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

    I've got error in my mac OS X 10.12, and this fixed the problem.

    brew install qt5
    brew link --force qt5
    gem install capybara-webkit
    
    0 讨论(0)
  • 2020-12-23 11:23

    QT was the answer for me, thougtbot provide a comprehensive installation options here:

    https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit

    Generally depending on where you have home brew, this worked for me:

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

    For Debian & Ubuntu

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

    You can find other ways to install Qt here

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

    Solution for Linux.

    Ubuntu

    sudo apt-get install libqt4-dev libqtwebkit-dev
    

    Debian Stable

    sudo apt-get install libqt4-dev
    

    Fedora

    yum install qt-webkit-devel
    

    Fedora 16

    yum install qtwebkit-devel
    

    This works for me maybe it will be also helpful for somebody.

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

    For OSX, I had to

    brew install qt
    

    and then

    sudo gem install capybara-webkit -v '0.7.2'
    

    without sudo it would error

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