21
edits
AndrewJanke (talk | contribs) (Reflect "OS X" rename to "macOS") |
AndrewJanke (talk | contribs) (Update Homebrew install instructions, removing references to obsolete X11, removed options, and out-of-support macOS versions) |
||
Line 126: | Line 126: | ||
First, install Homebrew: | First, install Homebrew: | ||
*Install Xcode via the Mac App Store. | *Install Xcode via the Mac App Store. | ||
** | ** Install the command line tools by {{Codeline|xcode-select --install}}. | ||
*Follow [https://brew.sh/ Homebrew's installation instructions]. | |||
*Follow [https:// | |||
To install Octave, update to the latest package definitions | To install Octave, update to the latest package definitions with {{Codeline|brew update}}, and then install Octave. | ||
First we ensure brew itself has the latest definitions: | First we ensure brew itself has the latest definitions: | ||
<pre>brew update</pre> | <pre>brew update</pre> | ||
Then, we install Octave | Then, we install Octave: | ||
<pre>brew install octave</pre> | <pre>brew install octave</pre> | ||
The default charting package in Octave is straight qt. However, on the Mac gnuplot often works better. To switch to gnuplot, place the following text in your ~/.octaverc file: | |||
The default charting package in Octave is straight qt. However, on the Mac gnuplot often works better. To | |||
<pre>setenv('GNUTERM','qt') | <pre>setenv('GNUTERM','qt') | ||
graphics_toolkit("gnuplot")</pre> | graphics_toolkit("gnuplot")</pre> | ||
Line 170: | Line 157: | ||
Note: If brew complains about not having a formula for octave, the following command should fix it: | Note: If brew complains about not having a formula for octave, the following command should fix it: | ||
<pre>brew tap --repair</pre> | <pre>brew tap --repair</pre> | ||
The command below upgrades Octave and its dependencies to the latest Homebrew-supported versions: | The command below upgrades Octave and its dependencies to the latest Homebrew-supported versions: | ||
Line 180: | Line 163: | ||
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. | 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. | ||
Octave has | Octave has a built-in GUI (developed using Qt lib) installed by default so that gnuplot and other tools can use it directly. This GUI is always installed when installing Octave using Homebrew. | ||
In case of trouble, see the [https://docs.brew.sh/Troubleshooting Homebrew Troubleshooting Guide], which assists in diagnosing problems and craft useful bug reports. Bugs may be reported at [https://github.com/Homebrew/homebrew-core/issues Homebrew-core's issue tracker]. | |||
==Create a launcher app with AppleScript== | ==Create a launcher app with AppleScript== |
edits