annawebs
annawebs

Reputation: 13

curl (7) error when trying to install Homebrew on mac

Wanted to install Homebrew on my mac (on version 10.11.6) and put this into terminal:

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

The thing i get is the following:

curl: (7) Couldn't connect to server

Now, I don't have any knowledge about terminal and curl and proxy and all this stuff, but I really need Homebrew (actually I need ffmpeg but apparently homebrew is necessary for ffmpeg)... I remember having ffmpeg already installed half a year ago, but somehow I got it deleted. Now, I have a backup of that time, so can I just recover it - just homebrew and ffmpeg without recovering the whole backup? Or is there a way just to install homebrew again?

Thanks for helping!

-Peleadora

Upvotes: 1

Views: 3677

Answers (1)

equal-l2
equal-l2

Reputation: 969

You are using the outdated link.

You should use this instead (excerpt from brew.sh)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"  

EDIT:
If your curl keep not working, you can just download https://raw.githubusercontent.com/Homebrew/install/master/install via any other means.
Assuming the name of the downloaded file is install, you can run it with ruby by this.

/usr/bin/ruby install

Upvotes: 2

Related Questions