15

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?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
chompbits
  • 321
  • 3
  • 7

2 Answers2

22

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
evolved
  • 1,850
  • 19
  • 40
1

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

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

Tim Smith
  • 6,127
  • 1
  • 26
  • 32