Attention: We are retiring the ASP.NET Community Blogs. Learn more >

WATIR under the bridge (Proxy)

Hit this today attempting to install WATIR on my current development box. The domain has a proxy server that has only occasionally caused me issues, but now I was unable to use gem to install WATIR unless I could configure the proxy. The correct syntax was harder to find than I expected, so I thought I would capture it here:

To configure a proxy server, with associated username and password, execute this in your command window: (obviously replace out the relevant bits)

set HTTP_PROXY=http://username:password@domain-proxy-name:8080

The thread that I happened to find this on was here, I am sure there are others

http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/fdcc4268553756de?pli=1

Running gem update --system  Now succeeded, however my attempt to run gem install watir  kept timing out, not sure why, so I fell back to downloading the gem file to disk then running the install with a local path gem install c:\path…\watir-1.6.2.gem and I was up and running.

 

© Copyright 2009 - Andreas Zenker

3 Comments

  • Very cool! I hadn't heard about that and it is an attractive option. Especially when you work in an environment where installing ruby on all the dev machines may not be an option. Thanks for the tip!

  • Guys, that's not cool at all! C'mon.. I mean, how do you even pronounce "WATIN"?!

  • LOL!! That is a good point! Might need some more letters.
    SWATIN ? ([S]uperior)
    WALTIN ? (and [L]oad)
    WAITIN ? ([I]nterface)

Comments have been disabled for this content.