How To Make files in `/usr/local` Writable For Homebrew?
This should be solved changing the perms on that directory in the following way:

$ cd /usr/local
$ sudo chown -R &lt;your-username&gt;:&lt;your-group-name&gt; *


If you don't know your group, just type id -g.