Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Homebrew Symlink errors in Mac OSX High Sierra
@kirkhunter

This comment has been minimized.

Copy link

@kirkhunter kirkhunter commented Feb 18, 2018

image

@blind3dd

This comment has been minimized.

Copy link

@blind3dd blind3dd commented Mar 8, 2018

At last ! I've got symlinksss

@tonybrasunas-sighten

This comment has been minimized.

Copy link

@tonybrasunas-sighten tonybrasunas-sighten commented Mar 23, 2018

Thank you!

@sorieil

This comment has been minimized.

Copy link

@sorieil sorieil commented Apr 3, 2018

Thank you!!!

@klishevich

This comment has been minimized.

Copy link

@klishevich klishevich commented Apr 8, 2018

thanks!

@matthewepler

This comment has been minimized.

Copy link

@matthewepler matthewepler commented Apr 12, 2018

thanks!

@btargac

This comment has been minimized.

Copy link

@btargac btargac commented Apr 16, 2018

👍

@pauldailly

This comment has been minimized.

Copy link

@pauldailly pauldailly commented Apr 25, 2018

👍 thanks

@EmanuelCadems

This comment has been minimized.

Copy link

@EmanuelCadems EmanuelCadems commented Apr 30, 2018

Thanks!

@multiplehats

This comment has been minimized.

Copy link

@multiplehats multiplehats commented May 5, 2018

Hero 👯‍♂️

@salvomic

This comment has been minimized.

Copy link

@salvomic salvomic commented May 11, 2018

;-) thanks

@marisusis

This comment has been minimized.

Copy link

@marisusis marisusis commented May 20, 2018

Totally worked! Thanks! :)

@MaricleZhang

This comment has been minimized.

Copy link

@MaricleZhang MaricleZhang commented May 22, 2018

thanks

@tade0726

This comment has been minimized.

Copy link

@tade0726 tade0726 commented May 26, 2018

thanks!!

@msohail07

This comment has been minimized.

Copy link

@msohail07 msohail07 commented Jun 5, 2018

Thank you

@YigaoFan

This comment has been minimized.

Copy link

@YigaoFan YigaoFan commented Jun 10, 2018

Thank you.

@RoySRose

This comment has been minimized.

Copy link

@RoySRose RoySRose commented Jun 11, 2018

Thank you~!!@!@

@jondisla

This comment has been minimized.

Copy link

@jondisla jondisla commented Jun 11, 2018

Thanks a lot!

@GOussama

This comment has been minimized.

Copy link

@GOussama GOussama commented Jun 18, 2018

Thank you

@karlili

This comment has been minimized.

Copy link

@karlili karlili commented Jun 19, 2018

awesome.!

@CongBaDo

This comment has been minimized.

Copy link

@CongBaDo CongBaDo commented Jun 21, 2018

Thank you

@tony-jones

This comment has been minimized.

Copy link

@tony-jones tony-jones commented Jun 22, 2018

Awesome thanks!

@jrumbut

This comment has been minimized.

Copy link

@jrumbut jrumbut commented Jun 27, 2018

Very helpful!

@binoybcompany

This comment has been minimized.

Copy link

@binoybcompany binoybcompany commented Jul 3, 2018

Thank you helpful

@vladimirpoleshko

This comment has been minimized.

Copy link

@vladimirpoleshko vladimirpoleshko commented Jul 4, 2018

Thanks!

@ryosuke-hujisawa

This comment has been minimized.

Copy link

@ryosuke-hujisawa ryosuke-hujisawa commented Jul 9, 2018

nice !!

@Xilesun

This comment has been minimized.

Copy link

@Xilesun Xilesun commented Jul 14, 2018

nice

@Shimon1981

This comment has been minimized.

Copy link

@Shimon1981 Shimon1981 commented Jul 14, 2018

Muchos love!

@aflongo85

This comment has been minimized.

Copy link

@aflongo85 aflongo85 commented Jul 27, 2018

Awesome, thanks!

@tismoj

This comment has been minimized.

Copy link

@tismoj tismoj commented Jul 28, 2018

Thanks Man!

@anlia260

This comment has been minimized.

Copy link

@anlia260 anlia260 commented Jul 29, 2018

tks .

@TrueWill

This comment has been minimized.

Copy link

@TrueWill TrueWill commented Jul 29, 2018

Worked - thank you!

@pavelch

This comment has been minimized.

Copy link

@pavelch pavelch commented Jul 30, 2018

Thanks!

@snigel

This comment has been minimized.

Copy link

@snigel snigel commented Aug 2, 2018

Thanks!

@marrypen

This comment has been minimized.

Copy link

@marrypen marrypen commented Aug 9, 2018

Great! Thank you.

@puneettrehan

This comment has been minimized.

Copy link

@puneettrehan puneettrehan commented Aug 13, 2018

thanks

@Conturbo

This comment has been minimized.

Copy link

@Conturbo Conturbo commented Aug 16, 2018

yesss thank you! :D

@kxws888

This comment has been minimized.

Copy link

@kxws888 kxws888 commented Aug 16, 2018

thanks

@xiaoyuxie-vico

This comment has been minimized.

Copy link

@xiaoyuxie-vico xiaoyuxie-vico commented Aug 18, 2018

thanks

@andrewroe

This comment has been minimized.

Copy link

@andrewroe andrewroe commented Aug 18, 2018

Yes - thanks

@jhalehol

This comment has been minimized.

Copy link

@jhalehol jhalehol commented Aug 22, 2018

Excellent, thanks ;)

@rajkgenomics

This comment has been minimized.

Copy link

@rajkgenomics rajkgenomics commented Aug 24, 2018

I git Linking /usr/local/Cellar/git/2.14.2... Error: Permission denied @ dir_s_mkdir - /usr/local/lib

@rajkgenomics

This comment has been minimized.

Copy link

@rajkgenomics rajkgenomics commented Aug 24, 2018

when I tried to install git using brew install git and then did a brew link

@stacksjb

This comment has been minimized.

Copy link

@stacksjb stacksjb commented Sep 4, 2018

@paulodrade

This comment has been minimized.

Copy link

@paulodrade paulodrade commented Sep 10, 2018

Thanks

@DHBuild002

This comment has been minimized.

Copy link

@DHBuild002 DHBuild002 commented Sep 13, 2018

Hi Guys,

Thank you for the solution. Could you explain what this does?
The words doesn't allow you to change permissions on /user/local directly make me uneasy.

Ready to run the script, just need confirmation that this won't screw anything up on my Mac.

@davidsells

This comment has been minimized.

Copy link

@davidsells davidsells commented Sep 17, 2018

Thanks

@EthanDavis

This comment has been minimized.

Copy link

@EthanDavis EthanDavis commented Sep 19, 2018

Thanks!

@HusamAamer

This comment has been minimized.

Copy link

@HusamAamer HusamAamer commented Sep 21, 2018

Thanks

@jmaha

This comment has been minimized.

Copy link

@jmaha jmaha commented Sep 21, 2018

I do NOT recommend the solution posted at the top here - you're changing ownership of everything in /usr/local to your user. This could have ramifications for other apps, particularly if you have more than one user on your system.

This is the offending line, don't do this:
sudo chown -R $(whoami) $(brew --prefix)/*

The link provided by @stacksjb (https://pedrosneglectedtechblog.blogspot.com/2018/04/fix-on-macos-high-sierra-brew-link.html) is a MUCH safer workaround for this issue as it only involves creating the /usr/local/Frameworks folder and giving your user ownership of that folder, rather than everything in /usr/local.

@mfoote

This comment has been minimized.

Copy link

@mfoote mfoote commented Sep 27, 2018

@jmaha would sudo chown -R root $(brew --prefix)/* revert back to the original settings? I am annoyed at myself for not reading completely through this before just blindly pasting commands and hitting enter.

Thanks!

@SparkyzCodez

This comment has been minimized.

Copy link

@SparkyzCodez SparkyzCodez commented Oct 3, 2018

Nope, I don't like this solution at all. It seems too heavy handed. The output from the "brew --prefix" on my system is /usr/local . It's setting permissions on an entire /usr/local directory structure. Without having an easy way to revert the permissions after the brew installs are done it's not a good solution for me.

I went simple. I simply created a ./Frameworks directory in the location shown in the error text and then set the appropriate permissions. When I re-ran my "brew upgrade" everything went smoothly.

@zzz-icy

This comment has been minimized.

Copy link

@zzz-icy zzz-icy commented Oct 4, 2018

Thanks!!

@esojlm5

This comment has been minimized.

Copy link

@esojlm5 esojlm5 commented Oct 6, 2018

@SparkyzCodez nice thanks!

@vub

This comment has been minimized.

Copy link

@vub vub commented Oct 12, 2018

Thanks!!

@gabmontes

This comment has been minimized.

Copy link

@gabmontes gabmontes commented Oct 19, 2018

Thanks @jmaha and @SparkyzCodez!

@robertherdzik

This comment has been minimized.

Copy link

@robertherdzik robertherdzik commented Oct 27, 2018

❤️

@xinyanHu

This comment has been minimized.

Copy link

@xinyanHu xinyanHu commented Oct 28, 2018

Thanks!

@alexreyes

This comment has been minimized.

Copy link

@alexreyes alexreyes commented Nov 2, 2018

Works thanks!

@rumeshbandara

This comment has been minimized.

Copy link

@rumeshbandara rumeshbandara commented Nov 8, 2018

Thanks buddy! Resolved!

@abdullahkhilji

This comment has been minimized.

Copy link

@abdullahkhilji abdullahkhilji commented Nov 9, 2018

Thanks a lot ...

@InfamousMrS

This comment has been minimized.

Copy link

@InfamousMrS InfamousMrS commented Nov 15, 2018

@mfoote to revert back it would be something like:
sudo chown -R root:wheel $(brew --prefix)/*

But actually after that you have to change a few directories:
sudo chown -R $(whoami) $(brew --prefix)/Homebrew
sudo chown -R $(whoami) $(brew --prefix)/Cellar
sudo chown -R $(whoami) $(brew --prefix)/Frameworks
sudo chown -R $(whoami) $(brew --prefix)/var/homebrew

@fsalata

This comment has been minimized.

Copy link

@fsalata fsalata commented Nov 24, 2018

Thanks

@livercake

This comment has been minimized.

Copy link

@livercake livercake commented Nov 27, 2018

You, sir, are both a gentleman, and a scholar. Thanks so much for this!

@MrDaBIng

This comment has been minimized.

Copy link

@MrDaBIng MrDaBIng commented Dec 7, 2018

Thanks!

@Shahbaz-Akram

This comment has been minimized.

Copy link

@Shahbaz-Akram Shahbaz-Akram commented Dec 13, 2018

Thank you so much

@manhlinhng

This comment has been minimized.

Copy link

@manhlinhng manhlinhng commented Dec 21, 2018

thank you!

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Dec 21, 2018

Fantastic! Thank you!

@codeofthrone

This comment has been minimized.

Copy link

@codeofthrone codeofthrone commented Dec 22, 2018

thanks, nice work

@d3mash

This comment has been minimized.

Copy link

@d3mash d3mash commented Dec 25, 2018

Cheers mate

@michalchovanak

This comment has been minimized.

Copy link

@michalchovanak michalchovanak commented Dec 28, 2018

Thank you!

@samlandfried

This comment has been minimized.

Copy link

@samlandfried samlandfried commented Dec 31, 2018

Thanks!

@yapian

This comment has been minimized.

Copy link

@yapian yapian commented Jan 2, 2019

Thank you

@cbejensen

This comment has been minimized.

Copy link

@cbejensen cbejensen commented Jan 3, 2019

Thanks!

@raphaelarias

This comment has been minimized.

Copy link

@raphaelarias raphaelarias commented Jan 5, 2019

Thanks

@qingkaikong

This comment has been minimized.

Copy link

@qingkaikong qingkaikong commented Jan 7, 2019

Thanks, this works for me!

@juddlyon

This comment has been minimized.

Copy link

@juddlyon juddlyon commented Jan 9, 2019

H E R O

@aurelioluiz

This comment has been minimized.

Copy link

@aurelioluiz aurelioluiz commented Jan 16, 2019

Nice! Worked on Mojave.

@vv314

This comment has been minimized.

Copy link

@vv314 vv314 commented Jan 17, 2019

Thanks!

@Just1nWang

This comment has been minimized.

Copy link

@Just1nWang Just1nWang commented Jan 17, 2019

thanks

@aliliin

This comment has been minimized.

Copy link

@aliliin aliliin commented Jan 21, 2019

thank you

@ankitsri11

This comment has been minimized.

Copy link

@ankitsri11 ankitsri11 commented Jan 22, 2019

Thanks. Worked on Mojave 10.14.2.

@ishan1608

This comment has been minimized.

Copy link

@ishan1608 ishan1608 commented Jan 23, 2019

👍

@Akiranya

This comment has been minimized.

Copy link

@Akiranya Akiranya commented Mar 2, 2019

Thanks so much!

@ricburton

This comment has been minimized.

Copy link

@ricburton ricburton commented Mar 24, 2019

You're a legend.

@chimpy

This comment has been minimized.

Copy link

@chimpy chimpy commented Apr 2, 2019

Ta very much

@Aetles

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

@ijpatricio ijpatricio commented Jun 6, 2019

thank you so much!!!

@jdaguna

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

@kunal-mandalia kunal-mandalia commented Jul 19, 2019

Thank you!

@trilmn

This comment has been minimized.

Copy link

@trilmn trilmn commented Aug 8, 2019

Saves me tons of time. Many thanks!

@soyfrien

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

@Dionid Dionid commented Mar 6, 2020

Thanks!

@amandalala123

This comment has been minimized.

Copy link

@amandalala123 amandalala123 commented Sep 18, 2020

Thank you!

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