Hey! If solution to the Error: Permission Denied @ Dir_S_Mkdir -/Usr/Local/Frameworks is what you’re looking for, you have come to the right place. To bring you this article, we have summarized the information. I hope you found this article useful.
How To Fix Permissions?
When attempting to install Python via Homebrew, an error message appeared at the bottom, preventing the process from completing. When I try to redo it, it asks me to do the following:
$ brew link python
The same error message appears after importing.
permission denied @dir_s_mkdir - /usr/local/lib
when one tries to do:
$ sudo chown -R $(whoami) /usr/local
An error message appears saying:
chown: /usr/local: operation not allowed
Solution To This Error
Try using the commands provided below in order to get rid of the error Error: Permission Denied @ Dir_S_Mkdir -/Usr/Local/Frameworks:
sudo mkdir /usr/local/Frameworkssudo chown $(whoami):admin /usr/local/Frameworks brew link python3
sudo mkdir /usr/local/Frameworkssudo chown $USER /usr/local/Frameworks
And then try to reinstall python, it ought to do the job.
For MacOs users
Mac users need to use the commands provided here:
sudo chown -R $(whoami) $(brew --prefix)/*
sudo chown -R (whoami) (brew --prefix)/*
If these don’t work there’s another command you can try:
sudo mkdir -p /usr/local/sbin /usr/local/Frameworkssudo chown -R $(whoami) /usr/local/sbin /usr/local/Frameworks
If you want to uninstall brew, use this command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
And to reinstall, use these commands:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Python is popular language among coders, and is known for being relatively easy as compared to it’s contemporaries. However, no matter how easy the language, errors are inevitable. Such is the buisness of programming. However, as far as this error is concerned, we got you covered. If follow the steps given above, you should have no trouble fixing them.
If you’re still confused, do not worry, just et us know your queries in the comments below.