Octave for macOS: Difference between revisions

54 bytes removed ,  28 March 2015
Update Homebrew installation instructions (with-docs enabled by default)
(→‎Simple Installation Instructions: Macports new Java variant and arpack and setup gnuplot graphic toolkit)
(Update Homebrew installation instructions (with-docs enabled by default))
Line 106: Line 106:
brew install octave</pre>
brew install octave</pre>
This would install octave with the default dependencies. Note that the default dependencies include java runtime environment. If you do not have java installed, homebrew would guide you to do that. Or you can type {{Codeline|brew install octave --without-java}} to remove its dependency on java.
This would install octave with the default dependencies. Note that the default dependencies include java runtime environment. If you do not have java installed, homebrew would guide you to do that. Or you can type {{Codeline|brew install octave --without-java}} to remove its dependency on java.
By default octave does not include docs (used by `help` function) because it requires an entire LaTex environment. If you have MacTex installed (or homebrew would guide you to install it), you can add {{Codeline|--with-docs}} to the installation script:
<pre>brew install octave --with-docs --without-java</pre>


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:
Line 115: Line 113:
<pre>brew update && brew upgrade</pre>
<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.
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 an experimental built-in GUI (developed using Qt lib) installed by default so that gnuplot and other tools could use it directly. So you do not need to install a X server in the most situations.
 
Note: On Snow Leopard, Octave requires a X server. If you install without, Homebrew will guide you to the XQuartz project (https://xquartz.macosforge.org) where you can download this.
Octave has an experimental built-in GUI (developed using Qt lib) installed by default so that gnuplot and other tools could use it directly. Gnuplot will build with Qt support if Octave's Qt-based GUI is enabled. You do not need to install an X server in most situations. Note: On Snow Leopard, Octave requires an X server. If you install without, Homebrew will guide you to the XQuartz project (https://xquartz.macosforge.org) where you can download this.


You might find that you need to add:
You might find that you need to add:
Line 123: Line 121:
<pre>setenv ("GNUTERM", "X11")</pre>
<pre>setenv ("GNUTERM", "X11")</pre>


to your octaverc file, normally located at {{Codeline|/usr/local/share/octave/site/m/startup}}.
to your octaverc file, normally located at {{Codeline|/usr/local/share/octave/site/m/startup}}. See also {{Codeline|brew info octave}} for recommended settings.


In case of trouble, see the [https://github.com/mxcl/homebrew/wiki/troubleshooting Homebrew Troubleshooting Guide], which assists in diagnosing problems and craft useful bug reports.  The [http://jatinganhotra.com/blog/2014/01/21/installing-octave-on-os-x-10-dot-9-mavericks/ post by Jatin Ganhotra] may also be helpful. Bugs may be reported at [https://github.com/Homebrew/homebrew-science/issues?state=open Homebrew-science's issue tracker].
In case of trouble, see the [https://github.com/mxcl/homebrew/wiki/troubleshooting Homebrew Troubleshooting Guide], which assists in diagnosing problems and craft useful bug reports.  The [http://jatinganhotra.com/blog/2014/01/21/installing-octave-on-os-x-10-dot-9-mavericks/ post by Jatin Ganhotra] may also be helpful. Bugs may be reported at [https://github.com/Homebrew/homebrew-science/issues?state=open Homebrew-science's issue tracker].
Anonymous user