[英]Error loading watir-webdriver
Is there a way to install an earlier version of watir-webdriver including dependencies? 有没有办法安装包括依赖项的watir-webdriver的早期版本?
I've been running watir-webdriver for a while now, but just ran into problems today when installing on a new Windows environment. 我已经运行watir-webdriver已有一段时间了,但是今天在新的Windows环境中安装时遇到了问题。
The error is on the require "watir-webdriver". 错误出现在要求的“ watir-webdriver”上。 The first error line indicates that ruby is unable to load ffi
第一条错误行指示ruby无法加载ffi
C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- ffi_c (LoadError)
It looks like the problem may be with the combination of gems, so am including the versions here: 看来问题可能出在宝石的组合上,所以在这里包括了版本:
bigdecimal (1.2.4) childprocess (0.5.3) ffi (1.9.5 x86-mingw32) io-console (0.4.2) json (1.8.1) minitest (4.7.5) multi_json (1.10.1) psych (2.0.5) rake (10.1.0) rdoc (4.1.0) rubyzip (1.1.6) selenium-webdriver (2.43.0) test-unit (2.1.3.0) watir-webdriver (0.6.11, 0.6.10) websocket (1.2.1)
If you know of a version that worked in the past, you can simple remove the current version and install an old one with the -v flag for gem install. 如果您知道以前使用过的版本,则可以简单地删除当前版本,并使用-v标志安装旧版本进行gem install。
For example, 例如,
gem uninstall watir-webdriver
gem install watir-webdriver -v '= 0.4.0'
You can find the different available version on rubygems.org It will automatically install the proper dependencies. 您可以在rubygems.org上找到其他可用版本。它将自动安装适当的依赖项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.