# RubyGemInstallError

**URL:** <https://www.ruby-forum.com/t/rubygeminstallerror/165241>\
**Category:** Ruby\
**Created:** [April 10, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/rubygeminstallerror/165241 "2009-04-10T16:51:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandu80](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9dc877/32.png) [@chandu80](https://www.ruby-forum.com/u/chandu80)\
**Post date:** [April 10, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/rubygeminstallerror/165241/1 "2009-04-10T16:51:14Z")

</div>

I have installed ruby 1.8.6  
To install watir these are the steps I followed

set HTTP\_PROXY=[http://my.work.proxy:8080](http://my.work.proxy:8080)(I entered the proxy address)  
gem update --system  
gem install watir

Now when I run a ruby script  
I get the following error

ruby: No such file or directory – a.rb (LoadError)(a is the name of  
the file)

Now I tried to re-install watir using  
gem install watir

I get the following error.

ERROR: [http://gems.rubyforge.org/](http://gems.rubyforge.org/) does not appear to be a repository  
ERROR: could not find gem watir locally or in a repository

Does anybody know how to solve this error?

---

<div class="post-metadata">

**Author:** ![chandu80](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9dc877/32.png) [@chandu80](https://www.ruby-forum.com/u/chandu80)\
**Post date:** [April 13, 2009, 10:52pm UTC](https://www.ruby-forum.com/t/rubygeminstallerror/165241/2 "2009-04-13T22:52:51Z")

</div>

On Apr 10, 2009, at 07:50, Chandu80 wrote:

> ruby: No such file or directory – a.rb (LoadError)(a is the name of  
> Does anybody know how to solve this error?  
> gem -V --backtrace install watir
