Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew: Could not symlink, /usr/local/bin is not writable [closed]

Tags:

homebrew

While installing tig, HomeBrew is displaying the following issues while installing a dependency:

Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/a2x /usr/local/bin is not writable.  You can try again using:   brew link asciidoc 
like image 253
Jikku Jose Avatar asked Oct 30 '14 07:10

Jikku Jose


1 Answers

Following Alex's answer I was able to resolve this issue; seems this to be an issue non specific to the packages being installed but of the permissions of homebrew folders.

sudo chown -R `whoami`:admin /usr/local/bin 

For some packages, you may also need to do this to /usr/local/share or /usr/local/opt:

sudo chown -R `whoami`:admin /usr/local/share sudo chown -R `whoami`:admin /usr/local/opt 
like image 101
Jikku Jose Avatar answered Oct 15 '22 18:10

Jikku Jose