Mac OS X 安装Octave说明

  Mac OS X 安装Octave说明

 

第一: Xcode以及Command Line Tool (CLT)
[qwert] Mac OS X 安装Octave手札 - Puriney - Purineys Notes
 
第二: Xquatz,并建立软连接为X11

sudo ln -sf /Applications/Utilities/XQuartz.app/ /Applications/Utilities/X11.app

[qwert] Mac OS X 安装Octave手札 - Puriney - Purineys Notes
 
第三:使用homebrew安装Octave

brew tap homebrew/science

brew install gmp --build-from-source

brew install gfortran
brew install octave
brew install gnuplot
第四:设置环境变量

echo "export GNUTERM='X11'" >> .bash_profile


最后汇报一下安装的依赖, 方便以后想要卸载时好卸载干净

Installing dependencies for gfortran: mpfr, libmpc, isl, cloog
Installing dependencies for octave: gnu-sed, texinfo, fftw, tbb, suit, glpk, graphicsmagick,szip,hdf5,pcre,cmake, qhull, dotwrp, qrupdate, fltk, gnuplot lua