From: Bret Pettichord Date: 2010-10-23T01:14:15+09:00 Subject: Re: cannot load watir --0016e6407ce0a1753c049336ee86 Content-Type: text/plain; charset=ISO-8859-1 There is an environment variable that automatically loads rubygems. On Fri, Oct 22, 2010 at 11:10 AM, Junkone wrote: > 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. > > -- Bret Pettichord Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord --0016e6407ce0a1753c049336ee86--