Deprecation warning for capybara-webkit requiring Qt version 5

自闭症网瘾萝莉.ら 提交于 2019-12-23 22:13:33

问题


When I run rspec, I get the following message:

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

I was not aware I was using Qt, so know nothing of the implications of upgrading it.

How do I upgrade it and what precautions should I take before doing so?


回答1:


equaleffect's comment above led me to ImNaN answer, i.e.

Comment out the capybara and capybara-webkit gems from your gemfile. Then:

    bundle
    gem uninstall capybara-webkit
    gem uninstall capybara # if it complains about dependencies 'gem uninstall' them first
    brew remove qt
    brew remove qt5 # if you've been playing around

From a clean environment (restart your terminal):

    brew install qt5
    brew linkapps qt5
    brew link --force qt5

Uncomment capybara and capybara-webkit in the gemfile and then:

    bundle install


来源:https://stackoverflow.com/questions/33121490/deprecation-warning-for-capybara-webkit-requiring-qt-version-5

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