I got this error when I tried to install Mingw-w64 C++ Compiler through Homebrew, and I can't figure out how to solve it since I tried several methods, but they weren't effective. Does anyone have any suggestions?
Error: The following directories are not writeable by your user:
/usr/local/share/zsh
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/share/zsh
And make sure that your user has write permission.
chmod u+w /usr/local/share/zsh
(base) macbook-Air:~ Rawan$
sudo
when attempting the install? – Allan Feb 20 '23 at 17:21sudo
– Allan Feb 20 '23 at 19:27brew doctor
? – Marc Wilson Feb 20 '23 at 21:18