Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

homebrew error The following directories are not writable by your user:

When I tried to install Python 3 through Homebrew, I got the following message. How can I fix this error?

I’m not familiar with command line, so I would appreciate if you could provide me with the exact commands to execute to resolve the issue.

Error: The following directories are not writable by your user:
/usr/local/share/man/man7

You should change the ownership of these directories to your user.
  sudo chown -R $(whoami) /usr/local/share/man/man7

And make sure that your user has write permission.
  chmod u+w /usr/local/share/man/man7
like image 967
Jaehyeon Robert Han Avatar asked Apr 24 '20 22:04

Jaehyeon Robert Han


Video Answer


1 Answers

You have to change ownership on the mentioned directory by running the command:

sudo chown -R $(whoami) /usr/local/share/man/man7
like image 105
Ortomala Lokni Avatar answered Oct 31 '22 09:10

Ortomala Lokni