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 <[email protected]> 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 <[email protected]> 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. > > > > [email protected] > > http://groups.google.com/group/watir-general > > [email protected] > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > [email protected] > http://groups.google.com/group/watir-general > [email protected]<http://groups.google.com/group/watir-general%[email protected]> > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
