Octave for macOS: Difference between revisions

Jump to navigation Jump to search
1,799 bytes added ,  29 April 2013
Undo revision 2597 by 24.5.182.164 (talk)
(Homebrew doesn't have Octave anymore - they couldn't get it to build so have just given up and it's been entirely removed from the repository)
(Undo revision 2597 by 24.5.182.164 (talk))
Line 1: Line 1:
GNU Octave is primarily developed on GNU/Linux and other POSIX conformant systems. GNU Octave for Mac OS X is readily available using [http://en.wikipedia.org/wiki/Package_management_system package managers] such as [http://www.finkproject.org/ Fink] and [http://www.macports.org/ MacPorts].
GNU Octave is primarily developed on GNU/Linux and other POSIX conformant systems. GNU Octave for Mac OS X is readily available using [http://en.wikipedia.org/wiki/Package_management_system package managers] such as [http://www.finkproject.org/ Fink], [http://www.macports.org/ MacPorts], and [http://mxcl.github.com/homebrew/ Homebrew].


About version numbers (as of May 2012):
About version numbers (as of May 2012):
Line 51: Line 51:
*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-devel +atlas+docs}} 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-devel +atlas+docs}} 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.
*The variant installed may be important to the user's experience.  The available variants for  {Codeline|octave-devel} are displayed by typing {{Codeline|port variants octave-devel}}.  It is recommended that the user include {{Codeline|+atlas+docs}}.  This will avoid bugs present in Apple's vecLib and enable support for Octave's  {{Codeline|doc()}} function.
*The variant installed may be important to the user's experience.  The available variants for  {Codeline|octave-devel} are displayed by typing {{Codeline|port variants octave-devel}}.  It is recommended that the user include {{Codeline|+atlas+docs}}.  This will avoid bugs present in Apple's vecLib and enable support for Octave's  {{Codeline|doc()}} function.
===Homebrew===
Homebrew is a package management system that simplifies the installation of software on Mac OS X. It is a free/open source software project to simplify installation of other free/open source software. It is similar in aim and function to MacPorts and Fink. It was written by Max Howell and has gained popularity in the Ruby on Rails community and earned praise for its extensibility.
====Simple Installation Instructions====
First, install Homebrew:
*Install XCode via the Mac App Store.
** Once installed, install the Command Line Tools from XCode's Apple Menu > Preferences > Downloads.
*Follow [https://github.com/mxcl/homebrew/wiki/installation Homebrew's installation instructions].
* Import the scientific computing packages, including Octave.
<pre>brew tap homebrew/science</pre>
To install Octave, update to the latest package definitions, install {{Codeline|gfortran}}, and then Octave.
<pre>brew update && brew upgrade
brew install gfortran
brew install octave</pre>
The command below upgrades Octave and its dependencies to the latest Homebrew-supported versions.
brew update && brew upgrade
Octave has many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours.
You might find that you need to add:
<pre>setenv ("GNUTERM", "X11")</pre>
to your octaverc file. This is normally located in:
<pre>/usr/local/share/octave/site/m/startup</pre>
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.  Bugs may be reported at [https://github.com/Homebrew/homebrew-science/issues?state=open Homebrew-science's issue tracker].


==Create a launcher app with AppleScript==
==Create a launcher app with AppleScript==
364

edits

Navigation menu