Good idea, I've since updated this page to reflect.

Loading RubyGems

If you’re a first time Ruby user, you need to understand how to load Ruby
gems such as Watir. You can require it via the -rubygems command line option
or by using the RUBYOPT environment variable. You can also require it
manually in your script:

require 'rubgyems'

For more information see here<http://docs.rubygems.org/read/chapter/3#page70>
.
Cheers,
Tim


On Fri, Feb 18, 2011 at 8:41 AM, Bill Agee <billa...@gmail.com> wrote:

> I think it's time to start updating Watir documentation with a " require
> 'rubygems' " step (or at least a note warning about the issue).
>
> A lot of folks installing Ruby on Windows for the first time are winding up
> without the RUBYOPT env var, and thus have a rockier first experience than
> those of us who came to Watir in the legacy one-click installer days. :)
>
> I think a good place to start would be:
>
> http://watir.com/examples/
>
> Is it pretty easy to update?
>
> I suppose a number of other docs would need to be changed too...not sure
> what the most popular destinations are these days for folks evaluating
> Watir.
>
> Thanks
> Bill
>
>
> On Thu, Feb 17, 2011 at 1:09 PM, Tim Koopmans <tim.ko...@gmail.com> wrote:
>
>> Try
>>
>> require 'rubygems'
>>
>> Before your require for Watir... Or set your RUBYOPT environment variable
>> ...
>>
>> Regards,
>> Tim
>>
>>
>>
>> On 18/02/2011, at 8:06 AM, mmauric <michel.maur...@yahoo.fr> wrote:
>>
>> > As explained in the getting started, I have installed ruby-1.8.7-p330
>> > with the option to update the path variable on Windows 7 pro and
>> > performed:
>> >
>> > gem update --system
>> > gem install watir
>> >
>> > -> watir-1.7.1 is installed (all seems right)
>> >
>> > Then I try to launch Watir and here is below the error message I get:
>> >
>> > C:\Ruby187>irb
>> > irb<main>:001:0>require 'watir'
>> > LoadError: no such file to load --watir
>> >       from <irb>:2in 'require'
>> >       from <irb>:2
>> > irb<main>:003:0>
>> >
>> > With Ruby-1.8.7, I have got some successfully cases (answer =>true),
>> > but I have not understood the scenario to reproduce.
>> >
>> > I have tried with different current directories and other versions of
>> > ruby without more success.
>> >
>> > Thank you for your help.
>> >
>> > Regards.
>> >
>> > --
>> > Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>> >
>> > watir-general@googlegroups.com
>> > http://groups.google.com/group/watir-general
>> > watir-general+unsubscr...@googlegroups.com
>>
>> --
>>
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> watir-general@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-general+unsubscr...@googlegroups.com<http://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com>
>>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to