Skip to content
Mar 17 / Rupak Ganguly

Installing gems behind proxy servers

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

It is well documented as part of gem help that using the following common options:

-p, –[no-]http-proxy [URL]      Use HTTP proxy for remote operations

will allow gem to use the proxy server for remote operations. While this has worked for me before, but recently for some reason I have been getting errors. So, the other alternative that works for me is to set the environment variable HTTP_PROXY as such:

set HTTP_PROXY=http://[proxy url]:[port]

Actually this option is convenient. I have set the above environment variable permanently for the machines that I use at work which are behind proxy servers.

2 Comments

leave a comment
  1. Rupak Ganguly / Mar 4 2009

    I cannot read spanish, so if someone can translate, it would be helpful.

Trackbacks and Pingbacks

  1. Instalando o Ruby, no Windows, sem o One-click Installer « Beyond Click
Leave a Comment