Cannot install watir gem

222 views
Skip to first unread message

dschu...@gmail.com

unread,
Oct 9, 2008, 11:42:58 PM10/9/08
to Watir General
Trying in an organisation with a proxy to install watir. The proxy has
hostname = proxyhost and port = 8080. I have set up an environment
variable (according to FAQ advice) as:

HTTP_PROXY=http://proxyhost:8080

And when I attempt to install watir I get this error:

D:\Ruby\bin>gem install watir
ERROR: While executing gem ... (URI::InvalidURIError)
bad URI(is not URI?): http://proxyhost:8080

What's the problem?

LFIdnl

unread,
Oct 10, 2008, 11:46:56 AM10/10/08
to Watir General
I tried install gems through proxy and i can't understand why it
didn't work too.
Try to local install local

Download gem from http://rubyforge.org/frs/?group_id=104&release_id=22799
and execute
D:\Ruby\bin>gem install <path of downloaded watir gem>
for example D:\Ruby\bin>gem install "D:\download\watir-1.5.6.gem"

Ravi

unread,
Oct 10, 2008, 12:20:14 PM10/10/08
to Watir General
setting http_proxy with login name and password may help:
set http_proxy=http://loginname:password@<proxy.server.com>:8080

On Oct 10, 10:46 am, LFIdnl <sraniim...@gmail.com> wrote:
> I tried install gems through proxy and i can't understand why it
> didn't work too.
> Try to local install local
>
> Download gem fromhttp://rubyforge.org/frs/?group_id=104&release_id=22799

dschu...@gmail.com

unread,
Oct 12, 2008, 10:13:10 PM10/12/08
to Watir General
I get the same error even when I have a local downloaded copy of
watir-1.5.6.gem

On Oct 11, 2:46 am, LFIdnl <sraniim...@gmail.com> wrote:
> I tried install gems through proxy and i can't understand why it
> didn't work too.
> Try to local install local
>
> Download gem fromhttp://rubyforge.org/frs/?group_id=104&release_id=22799
> and execute
> D:\Ruby\bin>gem install <path of downloaded watir gem>
> for example D:\Ruby\bin>gem install "D:\download\watir-1.5.6.gem"
>
> On 10 окт, 07:42, dschulb...@gmail.com wrote:
>
>
>
> > Trying in an organisation with a proxy to install watir. The proxy has
> > hostname = proxyhost and port = 8080. I have set up an environment
> > variable (according to FAQ advice) as:
>
> > HTTP_PROXY=http://proxyhost:8080
>
> > And when I attempt to install watir I get this error:
>
> > D:\Ruby\bin>gem install watir
> > ERROR:  While executing gem ... (URI::InvalidURIError)
> >     bad URI(is not URI?):http://proxyhost:8080
>
> > What's the problem?- Hide quoted text -
>
> - Show quoted text -

dschu...@gmail.com

unread,
Oct 12, 2008, 10:17:35 PM10/12/08
to Watir General
Hi,

The specifying of http_proxy in this fashion didn't help. I am not
surprised since I don't get challenged for any authentication when I
am using the proxy.

redalo

unread,
Oct 30, 2008, 2:58:02 PM10/30/08
to Watir General
This is the only solution that has worked for me when trying to
install watir behind a firewall (THANK YOU!). I had to use the full
URL (found using a ping), and I found the correct port in use in the
browser settings. When I did this using the system environmental
variable, I was failing to authenticate (command line threw a 407
response). Using the command prompt is the only thing that worked.
I've been able to update system and install watir. THANKS!
Reply all
Reply to author
Forward
0 new messages