1

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]

Željko Filipin
  • 56,372
  • 28
  • 94
  • 125
Prajwal
  • 11
  • 2
  • The last time I have tried, Watir worked only with Ruby 1.8, and I see you are using 1.9. It does not solve your problem, but try with Ruby 1.8. – Željko Filipin Jul 15 '10 at 12:44

4 Answers4

0

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 :)

Community
  • 1
  • 1
Jen
  • 1,964
  • 9
  • 33
  • 59
0

Try

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

and then

gem install watir
katmoon
  • 1,014
  • 1
  • 10
  • 18
0

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

gem install watir --source http://gems.github.com
ychang
  • 76
  • 9
0

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

Mike Cornell
  • 5,909
  • 4
  • 29
  • 38