I installed ruby186-26.exe available on ruby forge on my system and then successfully executed the following commands
gem install rubygems-update-1.3.7.gem
gem env
gem install activesupport --version="2.3.8"
but after this i am not able to install watir and getting this error
C:\Users\mayurpandey\Desktop>gem install watir
ERROR: http://rubygems.org/ does not appear to be a repository
ERROR: Error installing watir:
commonwatir requires user-choices (>= 0, runtime)
I would recommend using Ruby 1.8.7 the most recent versions of watir are known to work with it.
Or you can use Watir-Webdriver and a recent ruby 1.9 version as described by Zeljko in his instruction. (Watir-Webdriver uses the Selenium webdriver back-end to drive the browser and thus has wider browser support including chrome, headless, newer versions of FireFox, and Opera(I’m told, not sure if anyone has tested that)