ERROR installing watir

41 views
Skip to first unread message

ran_watir

unread,
Oct 6, 2008, 12:55:28 PM10/6/08
to Watir General
I have been perusing the discussion lists to find something related to
problems installing watir on Windows. Although I did find a lot of
things, did not see the specific error message I am encountering.
There was no gem to update and I downloaded the most recent version of
Ruby I found on their web site. I am behind a firewall that requires
authentication but setting HTTP_PROXY variable did not help either. I
am running Windows XP.

Any suggestions?

Thanks in advance.

Ranulfo

D:\>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

D:\>gem update --system
Updating RubyGems
Nothing to update

D:\>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

D:\>gem -v
1.2.0

Alister Scott

unread,
Oct 6, 2008, 8:39:05 PM10/6/08
to Watir General
Hi,
Try downloading the gem from this page and installing it locally:
http://wiki.openqa.org/display/WTR/Development+Builds

# Download the gem.
# Open a command window.
# cd to the directory where you downloaded the gem.
# type gem install --local watir

Cheers,
Alister

On Oct 7, 2:55 am, ran_watir <rusa...@hotmail.com> wrote:
> I have been perusing the discussion lists to find something related to
> problems installing watir on Windows. Although I did find a lot of
> things, did not see the specific error message I am encountering.
> There was no gem to update and I downloaded the most recent version of
> Ruby I found on their web site. I am behind a firewall that requires
> authentication but setting HTTP_PROXY variable did not help either. I
> am running Windows XP.
>
> Any suggestions?
>
> Thanks in advance.
>
> Ranulfo
>
> D:\>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
>
> D:\>gem update --system
> Updating RubyGems
> Nothing to update
>
> D:\>gem install watir
> ERROR:  http://gems.rubyforge.org/does not appear to be a repository

Željko Filipin

unread,
Oct 7, 2008, 6:52:26 AM10/7/08
to watir-...@googlegroups.com
On Tue, Oct 7, 2008 at 2:39 AM, Alister Scott <aliste...@gmail.com> wrote:
> http://wiki.openqa.org/display/WTR/Development+Builds

Alister,

gems at that page are really old. Maybe you should remove them.



Ranulfo,

Download watir from here (and follow Alister's instructions):

http://rubyforge.org/frs/?group_id=104&release_id=22799

Direct link to the newest gem:

http://rubyforge.org/frs/download.php/38130/watir-1.5.6.gem

Željko
--
http://watirpodcast.com/bret-pettichord-on-firewatir/

Bret Pettichord

unread,
Oct 7, 2008, 12:06:00 PM10/7/08
to watir-...@googlegroups.com
Here is some information here about installing Watir from behind a proxy.
http://wiki.openqa.org/display/WTR/Installing+ruby+gems+from+behind+proxy+firewall

Watir now depends on several other gems, so it will be complicated to
try and download and install them them all locally. You will need to
find out how to make the Proxy install work. Thousands of other users
have been able to get this to work, so please be persistent. This is a
general feature of the Ruby Gem system, and not Watir specific.

Bret

Tim Koopmans

unread,
Oct 7, 2008, 3:48:11 PM10/7/08
to Watir General
This happens to me a lot. Try installing from gem files downloaded
manually. There's some instructions on how to do this here:
http://justaddwatir.com/watir/q-how-do-i-gem-install-watir-behind-a-proxy-server/

Check out the comments section for recent example.

Regards,
Tim Koopmans

Bret Pettichord

unread,
Oct 7, 2008, 3:57:02 PM10/7/08
to watir-...@googlegroups.com
I've found that the gem installer works much better if you do a "gem
update --system". Unfortunately this can be hard to do also (for the
same reasons).

On one occassion, I did this update on a machine that did not have
connection problems, then I copied the entire ruby directory to my other
machines. After that, the gem installer worked great.

Bret

Tim Koopmans

unread,
Oct 7, 2008, 8:26:09 PM10/7/08
to Watir General
Indeed, it's a chicken and egg scenario =)

I used to package applications into MSIs; I've often thought about
rolling my own msi to take from site to site, as the organizations I
work in rarely have unauthenticated access to the internet. However
doing it via a batch file works well for me. An MSI would just
introduce version problems if watir (or its dependencies) are
regularly updated. Would still consider doing this though if it's a
common problem to the community ...

Cheers,
Tim Koopmans

Tim Koopmans

unread,
Oct 7, 2008, 10:50:31 PM10/7/08
to Watir General
Dang, can't take my own advice =)

I've created an MSI based on Windows XP SP2 with Ruby 1.8.6 and Watir
1.5.6 here:
http://justaddwatir.com/watir/wp-content/uploads/watir_156.msi

Feel free to try it out, no guarantees of course ... There is also
some brief instructions for use here:
http://justaddwatir.com/watir/q-how-do-i-install-watir-standalone/

Regards,
Tim Koopmans
Reply all
Reply to author
Forward
0 new messages