no such file to load -- watir (LoadError)

650 views
Skip to first unread message

pallavi shashidhar

unread,
Dec 8, 2008, 8:03:11 AM12/8/08
to watir-...@googlegroups.com
Hi there,
I have installed Ruby 1.8.6-26 and did a gem update --system and then installed a local watir gem .
I installed watir using "gem install watir -dir /watir1.5.6"
When i try to run the scripts, i get the following error:
"C:/Ruby1.8.6-26/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- watir (LoadError)
    from C:/Ruby1.8.6-26/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'"

Need to know what could be the problem.

Regards,
Pallavi

anna barbara ostrowska

unread,
Dec 8, 2008, 3:29:16 PM12/8/08
to watir-...@googlegroups.com
Hi there!
Add to script require 'rubygems', I had the same problem and it helps :)

2008/12/8 pallavi shashidhar <pals....@gmail.com>

pallavi shashidhar

unread,
Dec 9, 2008, 1:47:23 AM12/9/08
to watir-...@googlegroups.com
I get the same problem even after require 'rubygems' error is at the line where i have require 'watir'

parul upadhyay

unread,
Dec 9, 2008, 3:03:03 AM12/9/08
to watir-...@googlegroups.com
Hi Pallavi,
I'm getting the same error,after using rubygems it is giving error for watir.
I wanna ask u that when you have done gem update --system and then installed a local watir gem,did any error appeared?i'm writting it in command prompt.

please check if i've done correctly or not.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\parul.upadhyay>gem update --system
Updating RubyGems
ERROR:  http://gems.rubyforge.org/ does not appear to be a repository
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    Errno::ECONNREFUSED: No connection could be made because the target machine
actively refused it. - connect(2) (http://gems.rubyforge.org/yaml)

C:\Documents and Settings\parul.upadhyay>gem install watir
ERROR:  http://gems.rubyforge.org/ does not appear to be a repository
ERROR:  could not find gem watir locally or in a repository


Parul

pallavi shashidhar

unread,
Dec 9, 2008, 6:43:01 AM12/9/08
to watir-...@googlegroups.com
Hi,
I was able to do an update and install watir successfully. Only problem with running the scripts.
As for your case, i think you could not connect to the server for update.
Reply all
Reply to author
Forward
0 new messages