Octave for macOS: Difference between revisions

Jump to navigation Jump to search
1,343 bytes added ,  21 March 2015
→‎Simple Installation Instructions: Macports new Java variant and arpack and setup gnuplot graphic toolkit
m (MacPorts updated)
(→‎Simple Installation Instructions: Macports new Java variant and arpack and setup gnuplot graphic toolkit)
Line 79: Line 79:
====Simple Installation Instructions====
====Simple Installation Instructions====


*Install XCode via the Mac App Store.
*Install "XCode" via the Mac App Store and the "XCode Command Line Tools" as described at [http://www.macports.org/install.php MacPorts' installation instructions]. If your are running Mac OS X 10.9 (Mavericks) or 10.10 (Yosemite) you just need to type {{Codeline|xcode-select --install}} in the terminal and press the "Install" button of the appearing dialog box.
*Follow [http://www.macports.org/install.php MacPorts' installation instructions].
* If you have MacPorts already installed sooner, update it first by typing {{Codeline|sudo port selfupdate}} and {{Codeline|sudo port upgrade outdated}} in the terminal.
*MacPorts has good support for Octave. A list of what MacPorts has available for Octave is [http://www.macports.org/ports.php?by=name&substr=octave here]. To install the most recent version of Octave, type {{Codeline|sudo port install octave}} or if you want the experimental graphic user interface (GUI) {{Codeline|sudo port install octave +gui}} at the Terminal's command line. Octave has many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours.
*MacPorts has good support for Octave. A list of what MacPorts has available for Octave is [http://www.macports.org/ports.php?by=name&substr=octave here]. To install the most recent version of Octave, type {{Codeline|sudo port install octave}} or if you want the experimental graphic user interface (GUI) {{Codeline|sudo port install octave +gui}} at the Terminal's command line. Octave has many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours.
*Note that {{Codeline|octave-devel}} has been replaced by {{Codeline|octave}}, see [https://trac.macports.org/changeset/114034 MacPorts Revision 114034].
*Note that {{Codeline|octave-devel}} has been replaced by {{Codeline|octave}}, see [https://trac.macports.org/changeset/114034 MacPorts Revision 114034].
*The variant installed may be important to the user's experience.  The available variants for  {{Codeline|octave}} are displayed by typing {{Codeline|port variants octave}}.  In MacPorts 2.3.3 the variants ''atlas'', ''gcc49'' and ''glgui'' are installed by default (marked with '+' sign in {{Codeline|port variants octave}} output). For the experimental GUI add variant +gui (see above).
*The variant installed may be important to the user's experience.  The available variants for  {{Codeline|octave}} are displayed by typing {{Codeline|port variants octave}}.  In MacPorts 2.3.3 the variants ''atlas'', ''gcc49'' and ''glgui'' are installed by default (marked with '+' sign in {{Codeline|port variants octave}} output). For the experimental GUI add variant +gui (see above). If you need Java support add the new Java variant (+java).
*Octave depends on arpack. Unfortunately arpack is installed with the ''accelerate'' variant by default. The ''accelerate'' variant uses Apple's Vector Libraries which have some known bugs that can cause Octave to crash if using certain functions in arpack. To avoid this install arpack with the ''atlas'' instead of the ''accelerate'' variant {{Codeline|sudo port install arpack -accelerate+atlas}}. You can even do this after you installed Octave. The new variant become active by default.
*If Octave crashes when plotting use the Gnuplot graphic toolkit instead of FLTK. Type {{Codeline|graphics_toolkit('gnuplot')}} in Octave before plotting. For using the nicer wxt-terminal of Gnuplot, type {{Codeline|setenv("GNUTERM","wxt")}} in Octave. To make this the standard behavior append both commands in one of Octave's startup files e.g. your {{Codeline|~/.octaverc}}.


===Homebrew===
===Homebrew===
7

edits

Navigation menu