Gem install/update errors

Greetings all,

I am a newbie to the Ruby world. I just installed Ruby and I am trying
to install rails, using gem install.

Since my local pc (OS --> Win2k) is behind a proxy server, the command
gem install fails.

===========

gem install rails

Result -->

ERROR: While executing gem … (Errno::EBADF)

Bad file descriptor - connect(2)

===========

gem install rails -p http://proxy.server http://proxy.server/ :port

Result -->

ERROR: While executing gem … (Gem::RemoteSourceException)

HTTP Response 407

===========

gem install rails -p http:[email protected]//proxy.server:port

Result -->

ERROR: While executing gem … (Errno::EBADF)

Bad file descriptor - connect(2)

===========

Can somebody suggest an alternative way to install/update without
individually downloading every gem and manually installing it locally?

Thanks in advance,

Amit

gem 0.9 supports installing gems behind authenticated proxy.
Even though I got command line option working in the end but from
memory it is a bit particular about the format of the URL.
In the end, the long term solution I used was to setup env variables
for the proxy and credential for gem to use.
Unfortunately I can’t confirm what those env variables are as I am at
home at the moment but I think it can be derived from some doco.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs