27th Dec, 2007

Gem install behind proxy

The following error is thrown when we try to do ‘gem install something’ from behind the proxy.

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
Operation timed out - connect(2)(Errno::ETIMEDOUT)

To get out of this, do the following in your terminal.

export http_proxy=http://proxyserver:portnumber
export ftp_proxy=http://proxyserver:portnumber

Now enjoy doing gem installs.

If you want this settings permanently, add them to ~/.profile or ~/.bash_profile

Leave a response

Your response:

Categories and Tags

Advertising