HomeBrew installation on Mac behind proxy

I was having issues while installing homebrew on Mac 10.8.4 (version does not matter for the problem I was facing, but still writing the version for completeness). After typing in the installation command in the terminal:

ruby -e “$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)”

I was getting the following error message:

curl: (6) Could not resolve host: raw.github.com; nodename nor servname provided, or not known

Googling this did not give any appropriate answer. After lots of messing around, I realized that HomeBrew installation does not work behind proxy and one has to avoid that using the following command in terminal:

export ALL_PROXY=$http_proxy:port

After this is done, installation worked smoothly. FYI.

1 Comment

  • By Jayanth, May 19, 2014 @ 8:20 am

    Thanks much! This worked like a charm.

Other Links to this Post

RSS feed for comments on this post. TrackBack URI

Leave a comment