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.
On 8/8/06, Kothari, Amit <Amit.Kothari@lionbridge.com>
wrote:>
>
>
>
> 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:port
>
> Result ?
>
> ERROR: While executing gem ... (Gem::RemoteSourceException)
>
> HTTP Response 407
>
> ==========>
> gem install rails ?p http:login.id@password//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
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>