ERROR: Error installing capybara-webkit:

你。 提交于 2019-11-28 15:41:05

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'

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.

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

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.

On El Capitan or Yosemite, you may need to do brew install qt55 according to the doc here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!