Ghostscript not writable

本小妞迷上赌 提交于 2019-12-08 18:08:18

问题


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?


回答1:


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



回答2:


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

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



来源:https://stackoverflow.com/questions/25695934/ghostscript-not-writable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!