Skip to content

Instantly share code, notes, and snippets.

Last active April 21, 2022 18:36
  • Star 98 You must be signed in to star a gist
  • Fork 15 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Homebrew Symlink errors in Mac OSX High Sierra
Copy link

Akiranya commented Mar 2, 2019

Thanks so much!

Copy link

You're a legend.

Copy link

chimpy commented Apr 2, 2019

Ta very much

Copy link

Aetles commented May 1, 2019

I do think @jmaha and @SparkyzCodez are right, changing the owner on everything in /user/local seems like a bad idea.

As they said, the solution that @stacksjb linked is much better:

sudo mkdir /usr/local/Frameworks
sudo chown -R $(whoami) /usr/local/Frameworks

Copy link

thank you so much!!!

Copy link

jdaguna commented Jul 5, 2019

This works on Mojave: 10.14.5!

Thanks @dalegaspi for providing original solution!

@stacksjb @jmaha and @SparkyzCodez had an alternate solution that involves only changing permissions for the usr/local/Frameworks directory versus changing permissions for the usr/local directory:


Copy link

Thank you!

Copy link

trilmn commented Aug 8, 2019

Saves me tons of time. Many thanks!

Copy link

soyfrien commented Aug 11, 2019

Isn't step 2 enough? There's a lot of stuff in /usr/local besides homebrew.

Updating to confirm that only the second step of creating and setting permissions on /usr/local/Frameworks is necessary.

Copy link

Dionid commented Mar 6, 2020


Copy link

Thank you!

Copy link

Error: File exists @ dir_s_mkdir - /usr/local/share/man/man1
assims-MacBook-Pro:~ assimverma$ sudo chown -R $(whoami) $(brew --prefix)/*
assims-MacBook-Pro:~ assimverma$ sudo install -d -o $(whoami) -g admin /usr/local/share/man/man1
install: /usr/local/share/man/man1 exists but is not a directory
assims-MacBook-Pro:~ assimverma$

Copy link

Hi i have this issue the man1 file/folder exists but it is not a directory.
Please Help

Copy link

Error: An unexpected error occurred during the brew link step
The formula built, but is not symlinked into /usr/local
File exists @ dir_s_mkdir - /usr/local/share/man/man1
Error: File exists @ dir_s_mkdir - /usr/local/share/man/man1

Copy link

This is the proper error i am getting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment