Installing Watir via the gem utility
The install should be as simple as dropping into dos, cd to your Ruby folder and run the command:
gem install watir
Unfortunately it wasn’t that simple for me, we work via a proxy here so I had to tell the gem utility about it.
Running gem install when you are behind a proxy
Set the HTTP_PROXY environment variable.
Example:
set HTTP_PROXY=http://mycache:8080
You can now run:
gem install watir
Or you can pass the proxy information as a parameter to gem via the -p switch:
gem install watir -p http://mycache:8080
Gem will now go off download and install the latest Watir package, version 1.4.1 in my case. Be patient this can take some time depending on server load.
i love ram\’s!
rachel
11 Jan 07 at 4:08 pm
Great Second Option !
worked for me. Thanks a lot
Dattatray Patil
3 Jun 08 at 7:33 am
Hi ,
I tried installing watir.Got following error:
C:\ruby\bin>set HTTP_PROXY=http://web-proxy.us.com:8080
C:\ruby\bin>gem install watir
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
No connection could be made because the target machine actively refused it.
- connect(2)(Errno::ECONNREFUSED)
PLease help me to install
Thanks in advance
Regards,
Aruna
Aruna
2 Feb 09 at 7:49 am