First we ensure brew itself has the latest definitions:
<pre>brew update && brew upgrade
Then, we install Octave. To install only the command-line version use:
This would install octave with the default dependencies.
The default charting package in Octave is straight qt. However, on the Mac gnuplot often works better. To set up gnuplot, install (or reinstall) it with qt enabled:
Note: If brew complains about not having a formula for octave, the following command should fix it:
<pre>brew tap --repair</pre>
The command below upgrades Octave and its dependencies to the latest Homebrew-supported versions:
<pre>brew update && brew upgrade</pre>
Octave has many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours, but precompiled binary packages called 'bottles' are available with default options for Octave and many of its dependencies.