I installed homebrew and am trying to change write permissions for the / usr / local / include directory.
When I run 'brew doctor', I get this error message:
Error: The / usr / local directory is not writable. Even if this directory was writable when you installed Homebrew, other software may change permissions for that directory. Some versions of the “InstantOn” aerodynamic component are known to do this.
You should probably change the ownership and permissions of / usr / local to return to the user account.
I tried to do this with chown, but I'm pretty new to this and don't think I ran it correctly. I ran:
chown myusername /usr/local/include
I did not receive an error message, but when I run brew doctor, it says that I still do not have write permissions in / usr / local / include.
Any help would be greatly appreciated!
Edit:
I get an error "operation not allowed".
cd /usr
chown myusername local
chown: local: operation not allowed
source share