Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ghostscript not writable

Trying to install octave on a new Macbook, but keep running into problems using Homebrew. I am following directions here: http://wiki.octave.org/Octave_for_MacOS_X

I run into the 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 do I make ghostscript writable?

like image 579
chompbits Avatar asked Sep 06 '14 01:09

chompbits


2 Answers

Using this command worked for me:

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

After that it was possible to create the symlink with:

brew link --overwrite ghostscript
like image 120
evolved Avatar answered Nov 12 '22 00:11

evolved


Notice that /usr/local/share is outside /usr/local/bin.

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

like image 29
Tim Smith Avatar answered Nov 12 '22 01:11

Tim Smith