From: Junkone Date: 2010-10-23T01:10:13+09:00 Subject: Re: cannot load watir On Oct 22, 12:03 pm, Junkone wrote: > as you can see, i have the watir gem installed but cannot load it in > irb. dont know how to troubleshoot this. > > U:\>irb > irb(main):001:0> require 'watir' > LoadError: no such file to load -- watir >         from (irb):1:in `require' >         from (irb):1 > irb(main):002:0> exit > > U:\>gem list --local watir > > *** LOCAL GEMS *** > > watir (1.6.6) > > U:\>ruby -v > ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32] > > U:\>irb > irb(main):001:0> require 'watir' > LoadError: no such file to load -- watir >         from (irb):1:in `require' >         from (irb):1 > irb(main):002:0> i made it to work by loading rubygems first. U:\>irb irb(main):001:0> require 'watir' LoadError: no such file to load -- watir from (irb):1:in `require' from (irb):1 irb(main):002:0> require 'rubygems' => true irb(main):003:0> require 'watir' => true irb(main):004:0> However, i never had to load rubygems before. the script i am running was working before i reimaged my machine and reloaded ruby. what did i miss in my install that i have to require 'rubygems' now.