Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 

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 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

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

What the line does is fetching curl -fsSk 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 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .