[Wtr-general] no such file to load -- watir (LoadError)

CJ forum-watir-users at openqa.org
Tue Sep 5 12:20:51 EDT 2006


I cannot get WatiR to load/run.  Error= no such file to load -- watir (LoadError)

Info: 

Windows XP SP2, IE 7.0

I Installed Ruby 1.8.5-20 stable via the .exe (Used all default options)

I then installed Watir 1.4.1 via the .exe.  I received an installation Error opening file for writing:  \watir\AutoItX.chm so I manually created c:\watir directory and set destination folder to c:\watir and then the installation completed successfully.

I noticed that I only have one system variable created from the installations that appears related to Watir or Ruby.
RUBYOPT = -rubygems

When I am trying to run the unit tests and/or examples [as listed in the Watir User Guide @ http://wtr.rubyforge.org/watir_user_guide.html] I get the no such file to load error.

[b]I entered this at the command line for launching Examples.[/b]
C:\watir\examples>googlesearch.rb

c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- watir (LoadError)
          from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
          from C:/watir/examples/googleSearch.rb:15

[b]I entered this at the command line for launching Unit Tests.[/b]
C:\watir\unittests>all_tests.rb

c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- watir (LoadError)
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from C:/watir/unittests/../unittests/setup.rb:4
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from C:/watir/unittests/all_tests.rb:4

[b]MORE INFO:[/b]

I successfully can pull version of ruby.
C:\ruby\bin>ruby -v

ruby 1.8.4 (2006-04-14) [i386-mswin32]

I CANNOT pull version of Watir.

C:\ruby\bin>ruby -e 'require "watir"; puts Watir::IE::VERSION'

C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- watir (LoadError)
        from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from -e:1


Please, Please Help!

Any help will be greatly appreciated!!!  

CJ
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=3949&messageID=10863#10863


More information about the Wtr-general mailing list