简体   繁体   English

El Capitan的八度错误,不是可写错误

[英]Octave error on El Capitan, not writable error

I'm trying to install Octave on my El Capitan Macbook but I'm getting an odd error. 我正在尝试在El Capitan Macbook上安装Octave,但出现一个奇怪的错误。

OSX-3:~ me$ brew install octave
==> Installing octave from homebrew/science
Error: You must `brew link jpeg libtiff libpng freetype gmp fontconfig gd lua` before homebrew/science/octave can be installed

So I do what it told me to do ... 所以我按照它告诉我的去做...

OSX-3:~ me$ brew link jpeg libtiff libpng freetype gmp fontconfig gd lua
Linking /usr/local/Cellar/jpeg/8d...
Error: Could not symlink include/jconfig.h
/usr/local/include is not writable.

I tried "sudo brew" as well, but that did not work either. 我也尝试过“ sudo brew”,但这也不起作用。

Due to El Capitan update your /usr/local ownership might have been reseted to its default root:wheel and are not writable without sudo privileges. 由于El Capitan更新,您的/usr/local所有权可能已被重置为其默认的root:wheel并且没有sudo特权就无法写入。

Brew and sudo doesn't work well together as brew is intended to write in folder owned by a non root user. Brew和sudo不能很好地配合使用,因为brew旨在写入非root用户拥有的文件夹中。

To fix this you have to chown /usr/local : 要解决这个问题,您必须使用/ usr / local:

sudo chown -R $(whoami):admin /usr/local

Have a look at this issue on the homebrew's github for more informations. 请在自制软件的github上查看此问题,以获取更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM