Error: /usr/local is not writable. You should change the
ownership and permissions of /usr/local back to your
user account:
sudo chown -R $(whoami) /usr/local
但你执行这个命令是无法解决问题的。
会报错:chown: /usr/local: Operation not permitted
从stackoverflow得到结果如下:
New command for users on macOS High Sierra as it is not possible to chown
on /usr/local
:
sudo chown -R $(whoami) $(brew --prefix)/*
reference: https://github.com/Homebrew/brew/issues/3228
--------------------
brew直接安装得到的octave是没有gui界面的:
http://www.schoeps.org/home/2018/01/how-to-compile-gnu-octave-with-openblas-on-macos/
brew tap dpo/openblas
brew tap-pin dpo/openblas
brew install dpo/openblas/octave --devel --with-qt --with-java
如果需安装java:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
到此页面下载JDK for MAC