While installing some formula I get:-
The formula built, but is not symlinked into /usr/local
Running brew as root is not allowed.
sudo brew install awscli
Password:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
Try and change the permissions of /usr/local
does not work on my Mac.
sudo chown -R $(whoami) /usr/local
chown: changing ownership of '/usr/local/': Operation not permitted
So change ownership of everything under of /usr/local/:-
sudo chown -R $(whoami) /usr/local/*
# or
sudo chown -R $(whoami) $(brew --prefix)/*
This should now let brew create symlink in /usr/local/