# RubyGemInstallError

**URL:** <https://rubytalk.org/t/rubygeminstallerror/52786>\
**Category:** ruby-talk\
**Created:** [10 April 2009 14:50 UTC](https://rubytalk.org/t/rubygeminstallerror/52786 "2009-04-10T14:50:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandu80](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@Chandu80](https://rubytalk.org/u/Chandu80)\
**Post date:** [10 April 2009 14:50 UTC](https://rubytalk.org/t/rubygeminstallerror/52786/1 "2009-04-10T14:50:30Z")

</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(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:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [13 April 2009 20:50 UTC](https://rubytalk.org/t/rubygeminstallerror/52786/2 "2009-04-13T20:50:39Z")

</div>

gem -V --backtrace install watir

> **···**
>
> On Apr 10, 2009, at 07:50, Chandu80 wrote:
> 
> > 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?
