Mac OS: 10.11.5
1. 安装Xcode
AppStore搜索Xcode
2. 安装Command Line Tools
xcode-select --install
3. 安装brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
4.安装XQuartz
5.添加源
brew tap homebrew/science
6. 更新源
brew update && brew upgrade
7. 修改权限
sudo chown -R $(whoami):admin /usr/local/share/man
8. 安装octave
brew install octave
9. 配置octave
vi ~/octaverc
setenv ("GNUTERM", "X11")