1

Yeah, I searched serveal same problem(like how to install homebrew on MacOSx) in StackOverflow, but problem still occurs:

curl: (6) Could not resolve host: raw.githubusercontent.com

The command I typed in the terminal comes from homebrew.

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

But failed to install homebrew.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Tangoo
  • 1,329
  • 4
  • 14
  • 34

1 Answers1

0

The El Capitan enabled System Integrity Protection (SIP) by default, to install homebrew,you have to disable it.

reboot your mac and when it is restarting, press 'command + r' to enter recovery mode. open the Terminal and implement

csrutil disable

then reboot your mac and install the homebrew as you did. when finishing installing homebrew, don't forget to enable SIP to protect your mac.

About SIP: WWDC15 Security and Your Apps

Cœur
  • 37,241
  • 25
  • 195
  • 267