Normally when you install Ruby on Windows, sets the RUBYGEMS env var to 
"rubygems -rubygems". My guess is that when you reinstalled, for some 
reason this did not happen. You can do this manually and it should fix 
your configuration.

Note to others: this solution can also work on Mac if you don't want to 
add "require 'rubygems'" to your scripts.

Bret

Lisa Crispin wrote:
> Hi all,
> My mac had a hard disk disaster, and only after that did I discover I 
> had had a time machine backup disaster earlier, so I didn't have a 
> backup from after I got watir working on my vmware windows xp on the mac.
>
> I reinstalled using the same steps I had done a few weeks back, but my 
> watir scripts don't work, I get an error that watir isn't found. When 
> I do irb and require 'watir', I get this:
> irb(main):001:0> require 'watir'
> LoadError: no such file to load -- watir
>         from (irb):1:in `require'
>         from (irb):1
>
> I see emails on this list saying you have to require 'rubygems' before 
> require 'watir', and that *does* work, however, I never did that before.
>
> Do I now have to go edit every Watir script I have and add require 
> 'rubygems'? And is that going to work on a real PC? (I'm at home where 
> I don't have a PC right now).
>
> I've never had problems like this installing watir - I have the latest 
> of both Ruby and Watir
> ruby 1.8.6 patch level 287
> watir 1.6.2
>
> I installed per the instructions on http://wtr.rubyforge.org/install.html
>
> This stuff only happens to me when I'm at home and have no other 
> options! :-<
>
> Thanks,
> Lisa
>
> Thanks,
> Lisa
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to