Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know some people have asked this question before but I don't understand some of the answers. I'm a Mac user trying to instal Homebrew but I keep getting this error message:

curl: (7) couldn't connect to host)

whenever I enter this code in the terminal:

ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go) 

Can anyone explain to me how to resolve this and bear in mind I am a newbie to code.

share|improve this question

migrated from stackoverflow.com Oct 18 '12 at 12:20

This question came from our site for professional and enthusiast programmers.

    
what happens if you use http:// instead of https? –  three Oct 18 '12 at 12:12
add comment

1 Answer

This is not a ruby/curl problem but simply a problem with your network.

What the line does is fetching curl -fsSk https://raw.github.com/mxcl/homebrew/go and executing it as ruby code. The error you get is from curl which was not able to connect to the host.

So you need to figure out why curl cannot fetch that URL. Use a plain curl https://raw.github.com/mxcl/homebrew/go to see if you get any useful errors, but most likely not since it simply couldn't connect.

share|improve this answer
    
I keep getting the same error. Could it be because I'm trying this at work? I have proxy access because of my line of work but there are some sites I am unable to access. –  Siya Oct 18 '12 at 12:34
    
That might indeed be the case. –  ThiefMaster Oct 18 '12 at 13:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.