Skip to content

Instantly share code, notes, and snippets.

@dalegaspi
Last active January 4, 2024 22:32
Show Gist options
  • Save dalegaspi/7d336944041f31466c0f9c7a17f7d601 to your computer and use it in GitHub Desktop.
Save dalegaspi/7d336944041f31466c0f9c7a17f7d601 to your computer and use it in GitHub Desktop.
Homebrew Symlink errors in Mac OSX High Sierra
@ishan1608
Copy link

👍

@Akiranya
Copy link

Akiranya commented Mar 2, 2019

Thanks so much!

@ricburton
Copy link

You're a legend.

@chimpy
Copy link

chimpy commented Apr 2, 2019

Ta very much

@Aetles
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

@ijpatricio
Copy link

thank you so much!!!

@jdaguna
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:

Read more at https://pedrosneglectedtechblog.blogspot.com/2018/04/fix-on-macos-high-sierra-brew-link.html

@kunal-mandalia
Copy link

Thank you!

@trilmn
Copy link

trilmn commented Aug 8, 2019

Saves me tons of time. Many thanks!

@soyfrien
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.

@Dionid
Copy link

Dionid commented Mar 6, 2020

Thanks!

@amandalala123
Copy link

Thank you!

@assimdlhi
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$

@assimdlhi
Copy link

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

@assimdlhi
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

@assimdlhi
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