Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
share|improve this question

1 Answer 1

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

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.