Watir\'s site says I need Ruby 1.8.6, which I\'m running. And windows installation should be as simple as gem install watir
. But when I run that, I get this:
Execute Below command and its works
gem install watir --platform=mswin32
Installed devkit and after calling the bat file on Windows 7 from a cmd it fixed this issue. Using Ruby 1.9.1
Turns out I needed to install the Ruby Development files. =/
I also had to install nokogiri to get Watir to install successfully on windows, after installing DevKit. Use: gem install nokogiri
I would recommend you install the RubyInstaller Development Kit as documented here
Once you've installed it, the compile process of Watir dependencies (win32-api) will install successfully.