how to update watir?

淺唱寂寞╮ 提交于 2019-12-24 08:21:19

问题


i am getting error while truing to install watir

C:>gem install watir ERROR: http://rubygems.org/ does not appear to be a repository ERROR: Could not find a valid gem 'watir' (>= 0) in any repository

C:>gem -v 1.3.7

C:>ruby -v ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]


回答1:


Try

gem sources -a http://gems.github.com

and then

gem install watir



回答2:


One line solution (since I can't vote yet):

gem install watir --source http://gems.github.com



回答3:


That looks like a proxy problem. Use http_proxy environment variable to setup a tunnel, or download the gems manually from rubygems.




回答4:


I found this post useful in setting the http_proxy value and then installing.

How do I update Ruby Gems from behind a Proxy (ISA-NTLM)

Looks like this is an old post - but there was nothing marked as the answer :)



来源:https://stackoverflow.com/questions/3172108/how-to-update-watir

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