简体   繁体   中英

Error loading watir-webdriver

Is there a way to install an earlier version of watir-webdriver including dependencies?

I've been running watir-webdriver for a while now, but just ran into problems today when installing on a new Windows environment.

The error is on the require "watir-webdriver". The first error line indicates that ruby is unable to load 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM