0

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$

mmmmmm
  • 30,160
Ola
  • 1
  • 1
    You shouldn’t have to change the permissions like this. Are you using sudo when attempting the install? – Allan Feb 20 '23 at 17:21
  • What are the paragraphs after the line starting with Error? Are these also part of the error message or things you have tried or simply came across while searching on this issue? – Alper Feb 20 '23 at 17:43
  • I don't have any experience with that, so I don't know anything about (sudo). I searched about it, but I don't understand that. – Ola Feb 20 '23 at 18:26
  • I copied what showed on terminal screen so I don't know what are the paragraphs after the line started .. – Ola Feb 20 '23 at 18:28
  • See this question/answer: https://apple.stackexchange.com/q/192227/119271 and see this tutorial on sudo – Allan Feb 20 '23 at 19:27
  • Please provide the command line you are trying to use to install MinGW. What version of Homebrew? What is the output of brew doctor? – Marc Wilson Feb 20 '23 at 21:18
  • The output recommends two commands you should run. Did you do so, and what was the result? – nohillside Feb 20 '23 at 22:18

0 Answers0