
Octave has a built-in GUI (developed using Qt lib) installed by default so that gnuplot and other tools can use it directly.


The command below upgrades Octave and its dependencies to the latest Homebrew-supported versions: Note: If brew complains about not having a formula for octave, the following command should fix it:
Install octave on mac install#
Then run the brew install octave command again. Sudo chown -R `whoami` /usr/local/share/ghostscript The following command will repair the issue: You need to change those permissions to your user profile. This is telling you the user permissions for ghostscript are not setup in a way that your user profile can use. usr/local/share/ghostscript is not writable. Linking /usr/local/Cellar/ghostscript/9.14.Įrror: Could not symlink share/ghostscript/Resource To switch to gnuplot, place the following text in your ~/.octaverc file: However, on the Mac gnuplot often works better. The default charting package in Octave is straight qt.
Install octave on mac update#

The installation ended with the warning "unless octave is run with –no-gui-libs, graphics_toolkit(“fltk”) will cause a crash" but I have not investigated this issue.
Install octave on mac mac os x#
I just tested it (1) on Mac OS X 10.11.6 and was able to intall via MacPorts with no errors, ending up with atlas arpack qrupdate and octave about 5, with just the xcode command line tools installed (not the full XCode), I was able to use the above to install on macOS 10.12.1 Sierra: arpack atlas qrupdate and octave I initially was not able to get 4.2.0_0 installed, but 0_1 finally did. Omitting the (+java) flag removes this requirement. Maybe the smaller JRE (Java Runtime Environment) would be sufficient, but I have installed the full JDK. If you need Java support with the Java variant (+java) as above, you probably need a JDK (Java Development Kit) to get the necessary command line suff for that magic to work, so go to ( ) for a download.

Probably some of the octave variant flags are unneeded for some people, but I went with the options suggested by and it works for me to get command line Octave up and running, as well as giving a nifty Octave.app in the /Applications/MacPorts directory. Sudo port install octave -gcc5+gfortran-accelerate+atlas+docs+fltk+graphicsmagick+java-gui-metis-qtgui+app+qt4gui+sound Sudo port install qrupdate -accelerate+atlas+gcc5 Sudo port install arpack -accelerate+atlas+gfortran Basically to get all of Octave 4 running, I did: sudo port install atlas +gcc5 It seems as though MacPort's default atlas variant doesn't play nice with Octave, and arpac and qrupdate also have issues with their default installion, needing specific "variants" to properly build. Using MacPorts ( ), with insight from instructions at (as well as and ) as well as the Octave wiki at
