Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: does not appear to be a repository
ERROR:  could not find gem rails locally or in a repository
share|improve this question

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.