I am trying to experiment with rails on windows at work. At work we sit behind a proxy I think that is why following command is not working.

How can I set HTTP proxy environments from windows command line?

C:\>gem install rails
ERROR:  http://gems.rubyforge.org/ does not appear to be a repository
ERROR:  could not find gem rails locally or in a repository
link|improve this question
feedback

1 Answer

Either use the set command to set the HTTP_PROXY environment variable, or use the --http-proxy argument to gem.

link|improve this answer
Could you also please tell us how can we do the same in the Ubuntu terminal?. I am using Ubuntu 10.04. Thanks...! – boddhisattva Feb 14 '11 at 13:40
​With export. – Ignacio Vazquez-Abrams Feb 14 '11 at 13:48
feedback

Your Answer

 
or
required, but never shown