Home > Watir > Installing Watir via the gem utility

Installing Watir via the gem utility

27 February, 2006

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.

Advertisements
Categories: Watir
  1. 11 January, 2007 at 4:08 pm

    i love ram\’s!

  2. 3 June, 2008 at 7:33 am

    Great Second Option !
    worked for me. Thanks a lot

  3. Aruna
    2 February, 2009 at 7:49 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

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: