Cannot load watir

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.

···

On Oct 22, 12:03 pm, Junkone <junko...@gmail.com> 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>

require 'rubygems'
require 'watir'

···

On Fri, Oct 22, 2010 at 11:05 AM, Junkone <junkone1@gmail.com> 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>

--
Bret Pettichord
Lead Developer, Watir, www.watir.com

Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

There is an environment variable that automatically loads rubygems.

···

On Fri, Oct 22, 2010 at 11:10 AM, Junkone <junkone1@gmail.com> wrote:

On Oct 22, 12:03 pm, Junkone <junko...@gmail.com> 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

Perhaps your old system had the following environment variable:
RUBYOPT=rubygems setup.

···

On Oct 22, 1:06 pm, Junkone <junko...@gmail.com> wrote:

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.

--
Luis Lavena

last time, i used 1 click intaller. not this time. so i probably have
to setup the environment variable. How does it look like.
RUBYOPTS=<WHAT SHOULD I PUT HERE>

···

On Oct 22, 12:17 pm, Luis Lavena <luislav...@gmail.com> wrote:

On Oct 22, 1:06 pm, Junkone <junko...@gmail.com> wrote:

> 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.

Perhaps your old system had the following environment variable:
RUBYOPT=rubygems setup.

--
Luis Lavena

RubyInstaller no longer adds RUBYOPT

See above, I showed you what RUBYOPT should be set to.

···

On Oct 22, 1:45 pm, Junkone <junko...@gmail.com> wrote:

On Oct 22, 12:17 pm, Luis Lavena <luislav...@gmail.com> wrote:

> On Oct 22, 1:06 pm, Junkone <junko...@gmail.com> wrote:

> > 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.

> Perhaps your old system had the following environment variable:
> RUBYOPT=rubygems setup.

> --
> Luis Lavena

last time, i used 1 click intaller. not this time. so i probably have
to setup the environment variable. How does it look like.
RUBYOPTS=<WHAT SHOULD I PUT HERE>

--
Luis Lavena

this actually works.
RUBYOPT=rubygems
this did not work
RUBYOPT=rubygems setup

···

On Oct 22, 2:21 pm, Luis Lavena <luislav...@gmail.com> wrote:

On Oct 22, 1:45 pm, Junkone <junko...@gmail.com> wrote:

> On Oct 22, 12:17 pm, Luis Lavena <luislav...@gmail.com> wrote:

> > On Oct 22, 1:06 pm, Junkone <junko...@gmail.com> wrote:

> > > 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.

> > Perhaps your old system had the following environment variable:
> > RUBYOPT=rubygems setup.

> > --
> > Luis Lavena

> last time, i used 1 click intaller. not this time. so i probably have
> to setup the environment variable. How does it look like.
> RUBYOPTS=<WHAT SHOULD I PUT HERE>

RubyInstaller no longer adds RUBYOPT

See above, I showed you what RUBYOPT should be set to.

--
Luis Lavena