Deepend
Deepend

Reputation: 4155

curl: (7) error when i try installing Homebrew on iMac

Setup iMac OSX 10.7.4,

Hi there,

I am trying to install Homebrew on my iMac but I keep getting an error. I am following the instructions on https://github.com/mxcl/homebrew/wiki/installation

I have Xcode installed and the Java Developer update which it specifies on the website.

I open Terminal and paste

/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

But I keep getting the error

curl: (7) couldn't connect to host

Has anyone any suggestions?

EDIT:

Just to add I am on a college network incase its relevant

EDIT: I have also reinstalled Curl

Upvotes: 0

Views: 4049

Answers (5)

tdm00
tdm00

Reputation: 89

I also ran into this error and in my instance it was because my firewall was blocking or preventing outbound connections to Japan where it was trying to pull down the ruby version. Once the firewall rule was adjusted to allow the connections to that country everything worked fine.

Upvotes: 0

ohho
ohho

Reputation: 51941

For my specific case, I use SOCKS proxy for all traffic. So my installation command is:

 ruby -e "$(curl -fsSL --socks5 127.0.0.1:30000 https://raw.github.com/mxcl/homebrew/go)"

where 127.0.0.1:30000 is the SOCKS proxy.

Upvotes: 2

user2091739
user2091739

Reputation: 1

I too had same problem.
The recipe for proxies should add --noproxy after curl statement

ruby -e "$(curl --noproxy -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

Upvotes: 0

Deepend
Deepend

Reputation: 4155

My issue was Curl not being configured to bypass my proxy.

One of they guys here in the office sorted it out for me. From what I understand the settings on curl had to be changed and not the proxy.

Hopefully this will help others in future.

Upvotes: 1

James Allman
James Allman

Reputation: 41168

Something is blocking your connection to github. Try accessing the url https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb in your browser.

Upvotes: 1

Related Questions