I am trying to install Ruby and Watir in Windows. Intially both worked fine for me and I tried installing Cucumber. But things went wrong so I have to uninstall Ruby and Watir. Now I am trying to do it again, ruby has installed properly and when I give 'irb' in command prompt and then followed by require 'watir', ruby fails to identify watir.
I have ruby installed in C:\Ruby
Watir in C:\Watir
It will be very helpful for me if someone can tell the step by step process to install ruby and then watir.
I installed watir now and it works fine. Now I have all the files under C:\Ruby. My code script is present under C:\Ruby Code\Ruby_Test.rb. When I try to execute this file, it displays the following error :
./watir.rb:75:in `require': no such file to load -- watir/winClicker (LoadError)
from C:/Ruby Code/Ruby_Test.rb:2:in `require'
from C:/Ruby Code/Ruby_Test.rb:2
But the same 'ruby_test.rb' when placed under C:\, executes well.
Whats the problem with the location and where should I maintain my scirpts.
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNREFUSED: No connection could be made because the target machine
actively refused it. - connect(2) (http://gems.rubyforge.org/yaml)