Octave for macOS: Difference between revisions

Jump to navigation Jump to search
1,149 bytes removed ,  19 November 2013
Undo nonsensical changes to homebrew instructions.
m (Reverted edits by 99.239.111.114 (talk) to last revision by 46.115.122.48)
(Undo nonsensical changes to homebrew instructions.)
Line 50: Line 50:
*Follow [http://www.macports.org/install.php MacPorts' installation instructions].
*Follow [http://www.macports.org/install.php MacPorts' installation instructions].
*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===
Line 69: Line 69:
brew install gfortran
brew install gfortran
brew install octave</pre>
brew install octave</pre>
You may also need to separately install {{Codeline|hdf5}} prior to installing {{Codeline|octave}}.
<pre> brew install hdf5 </pre>
In the event that brew install of hdf5 fails with No available formula for hdf5 error message, follow the procedure given below<br>
Copy [https://raw.github.com/Homebrew/homebrew-science/master/hdf5.rb hdf5.rb] into /usr/local/Library/Formula. Then run <pre> brew install hdf5 </pre>
Currently as of Nov 13, 2013 you also have to adjust the hdf5 version number to hdf5-1.8.12.tar.bz2 and remove the checksum line below.
Should the fltk download fail, you can download http://fltk.org/pub/fltk/1.3.2/fltk-1.3.2-source.tar.gz to /Library/Caches/Homebrew/fltk-1.3.2.tar.gz and resume with brew install octave. If you happen to run into trouble in the last step, building octave, because your autotools are outdated, you can brew install them, after that brew link automate them with --force and then symlink them (e.g. /usr/local/bin/automake->/usr/local/bin/automake-1.14). If octave doesn't start, try
sudo cp /usr/X11/lib/libfontconfig.1.dylib /usr/lib/
and
sudo cp /usr/X11/lib/libfreetype.6.dylib /usr/lib/


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:

Navigation menu