For those of you using OS X El Capitan, protecting your system integrity may be your problem.
If /usr/local already exists, run the following in Terminal:
sudo chown -R $(whoami):admin /usr/local
If /usr/local does not exist:
First try creating /usr/local usual way:
sudo mkdir /usr/local && sudo chflags norestricted /usr/local && sudo chown -R $(whoami):admin /usr/local
If you see permission problems try:
- Reboot in recovery mode (hold Cmd + R at boot) and gain access to the terminal.
- In this terminal, run:
csrutil disable - Reboot back to OS X
- Open the Terminal application and run the line at the top
- Reboot back into recovery mode and access the terminal again.
- In this terminal, run:
csrutil enable - Reboot into OS X and you can write to / usr / local & install Homebrew.
Joseph Hansen Nov 10 '15 at 22:05 2015-11-10 22:05
source share