Closed
Description
Gist Logs: https://gist.github.com/37a31433396016024e15632dfe27b638
Greetings! Python3 was installed as a dependency of asciinema (brew install asciinema
) after updating, but it got stuck when linking python3, giving the following:
Linking /usr/local/Cellar/python3/3.6.3... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
I ran brew doctor
, and it said to run brew link python3
. That produced the same error message as before.
I tried searching around for this, but couldn't quite find a clear answer as what to do. If I understand correctly, it's no longer necessary (or recommended) to change the owner of /usr/local/
.
Appreciate any guidance on this!
Activity
fxcoudert commentedon Oct 11, 2017
Can you tell us if you have a
/usr/local/Frameworks
directory, and what permissions it has?Paste here the output of
ls -lh /usr/local
.chingNotCHing commentedon Oct 12, 2017
Same as your problem. This works for me.
liaodongxiaoxiao commentedon Oct 13, 2017
@chingNotCHing Thank you
JasonTheAdams commentedon Oct 14, 2017
@fxcoudert Nope, it doesn't currently exist.
Here's the permission of the parent
/usr/local/
directory:My understanding (@chingNotCHing) is that it's not a good idea to change the owner of
/usr/local/
to something other than root. I suppose I could make the Frameworks directory and set it tojason:admin
. 🤔abonillabeeche commentedon Oct 17, 2017
@JasonTheAdams after doing the option from above and running "brew link python3" I still get
Is this the case for you too?
edwardmp commentedon Oct 18, 2017
@abonillasuse, @chingNotCHing's stuff does not work for you because he made a typo (there is missing slash in the second command)
This is the correct one
aramprice commentedon Oct 19, 2017
Is there any info on why the
/usr/local/Frameworks
was not present? Is this abrew
installation bug/issue?JCount commentedon Oct 19, 2017
The
/usr/local/Frameworks
directory should be created by the install script if it does not already exist.JasonTheAdams commentedon Oct 19, 2017
Manually creating the
/user/local/Frameworks
directory and setting the permissions fixed the issue for me. Not sure why the directory wasn't created in the first place. I've been using homebrew for a while so maybe it wasn't added in an upgrade script.JCount commentedon Oct 19, 2017
If you installed using the install script before Homebrew/install#59 was merged, it is possible it was never created. It also is possible that a system/software update removed the
/usr/local/Frameworks
dir or changed its permissions, it is hard to tell.aramprice commentedon Oct 20, 2017
@JCount thank you for the info/explanation.
@JasonTheAdams manually creating the directory sorted things for me as well, thanks!
ilovezfs commentedon Oct 20, 2017
@JasonTheAdams thanks for reporting the issue and I'm glad to hear you got it working.
Jawknee-88 commentedon Nov 19, 2017
I faced this same issue after upgrading to macOS High Sierra. I had to recreate the /usr/local/ dirs Framework, include and lib which were deleted during the OS upgrade and then run
sudo chown -R $(whoami) $(brew --prefix)/*
to set permissions on the new directories.
folushooladipo commentedon Dec 8, 2017
@chingNotCHing Thanks for your answer. It worked for me, but not after I corrected the second command, which was missing a forward slash,
/
. So, it should belocal/Frameworks
notlocalFrameworks
.DandelionField commentedon Dec 17, 2017
I had a similar issue but wasn't able to resolve it by creating /usr/local/Frameworks. Instead, I created /usr/local/lib and followed @chingNotCHing's advice on how to assign permissions. It worked after that.