Skip to content

Instantly share code, notes, and snippets.

@dalegaspi
Last active January 4, 2024 22:32
Show Gist options
  • Star 97 You must be signed in to star a gist
  • Fork 15 You must be signed in to fork a gist
  • 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
@codeofthrone
Copy link

thanks, nice work

@d3mash
Copy link

d3mash commented Dec 25, 2018

Cheers mate

@michalchovanak
Copy link

Thank you!

@samlandfried
Copy link

Thanks!

@yapian
Copy link

yapian commented Jan 2, 2019

Thank you

@cbejensen
Copy link

Thanks!

@raphaelarias
Copy link

Thanks

@qingkaikong
Copy link

Thanks, this works for me!

@juddlyon
Copy link

juddlyon commented Jan 9, 2019

H E R O

@aurelioluiz
Copy link

Nice! Worked on Mojave.

@vv314
Copy link

vv314 commented Jan 17, 2019

Thanks!

@Just1nWang
Copy link

thanks

@aliliin
Copy link

aliliin commented Jan 21, 2019

thank you

@ankitsri11
Copy link

Thanks. Worked on Mojave 10.14.2.

@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