Octave for macOS: Difference between revisions

7 bytes removed ,  29 April 2013
m
Modify format so the path for ~octaverc is not at the same level as commands you execute
(Undo revision 2597 by 24.5.182.164 (talk))
m (Modify format so the path for ~octaverc is not at the same level as commands you execute)
Line 62: Line 62:
** Once installed, install the Command Line Tools from XCode's Apple Menu > Preferences > Downloads.
** 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].
*Follow [https://github.com/mxcl/homebrew/wiki/installation Homebrew's installation instructions].
* Import the scientific computing packages, including Octave.
* Import the scientific computing packages, including Octave:
<pre>brew tap homebrew/science</pre>
<pre>brew tap homebrew/science</pre>


To install Octave, update to the latest package definitions, install {{Codeline|gfortran}}, and then Octave.
To install Octave, update to the latest package definitions, install {{Codeline|gfortran}}, and then Octave:
<pre>brew update && brew upgrade
<pre>brew update && brew upgrade
brew install gfortran
brew install gfortran
brew install octave</pre>
brew install octave</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:
  brew update && brew upgrade
  brew update && brew upgrade


Line 79: Line 79:
<pre>setenv ("GNUTERM", "X11")</pre>
<pre>setenv ("GNUTERM", "X11")</pre>


to your octaverc file. This is normally located in:
to your octaverc file, normally located at {{Codeline|/usr/local/share/octave/site/m/startup}}.
 
<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].
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].
21

edits