Ghostscript is not writable

Trying to install an octave on a new Macbook, but the problem with using Homebrew continues to work. I follow the directions here: http://wiki.octave.org/Octave_for_MacOS_X

I encountered an error:

Linking /usr/local/Cellar/ghostscript/9.14... Error: Could not symlink share/ghostscript/Resource /usr/local/share/ghostscript is not writable. 

After entering:

 sudo chown -R username:admin /usr/local/bin brew link ghostscript 

I still get the same error. How to make ghostscript entry available?

+6
source share
2 answers

Using this command for me:

 sudo chown -R `whoami` /usr/local/share/ghostscript 

After that, it became possible to create a symbolic link:

 brew link --overwrite ghostscript 
+3
source

Note that / usr / local / share is outside of / usr / local / bin.

Try sudo chown -R username:admin /usr/local .

+1
source

Source: https://habr.com/ru/post/974909/


All Articles