I've installed homebrew, and am trying to change the write permissisons 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 on this directory. Some versions of the "InstantOn" component of Airfoil are known to do this.
You should probably change the ownership and permissions of /usr/local back to your user account.
I tried doing that with chown, but I'm pretty new at this and don't think I was running it correctly. I ran:
chown myusername /usr/local/include
I didn't get any error message, but when I run brew doctor it says I still lack permission to write to /usr/local/include.
Any help would be greatly appreciated!
Edit:
I'm getting an "operation not permitted" error.
cd /usr
chown myusername local
chown: local: Operation not permitted
Change the group owner of a file by using the chgrp command. Specifies the group name or GID of the new group of the file or directory.
How can I know what's the owner of a file in finder > get info? so, if there're permissions for several users, you'll see them listed first, THE BOTTOM-MOST USER IS THE OWNER.
Simple solution that worked for me:
type brew doctor
from command prompt to test. My result:
Your system is ready to brew.
You should use: sudo chown username folder
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With