Octave for macOS: Difference between revisions

457 bytes added ,  27 April 2013
Line 59: Line 59:


*Install XCode: This is done via the MacOS X App Store. (technically you may only require just the xcode command line tools- this download is smaller at 113 megs rather than the full xcode suite at about 1.6 gigs-)
*Install XCode: This is done via the MacOS X App Store. (technically you may only require just the xcode command line tools- this download is smaller at 113 megs rather than the full xcode suite at about 1.6 gigs-)
* download and install xquartz
*Follow [https://github.com/mxcl/homebrew/wiki/installation Homebrew's installation instructions].
*Follow [https://github.com/mxcl/homebrew/wiki/installation Homebrew's installation instructions].
[http://mxcl.github.com/homebrew/ Homebrew] has good support for Octave. To install Octave, you must first enable the scientific related formulae by typing at the Terminal's command line:
[http://mxcl.github.com/homebrew/ Homebrew] has good support for Octave. To install Octave, you must first enable the scientific related formulae by typing at the Terminal's command line:
Line 68: Line 69:
  brew install gfortran
  brew install gfortran


brew install octave
**** caution -information below on using suite-sparse 3.7.0 might have been outdated by now , so try the normal build above which uses suite-sparse 4.2.0, and if that fails try the approach below *****
Currently, linking Octave fails with the newest suite-sparse (4.1.0). As a solution, an older version can be installed.
Currently, linking Octave fails with the newest suite-sparse (4.1.0). As a solution, an older version can be installed.
First, versioning must be enabled and an older version has to be chosen (in this case, 3.7.0)
First, versioning must be enabled and an older version has to be chosen (in this case, 3.7.0)
Line 85: Line 89:
  brew switch suite-sparse 3.7.0
  brew switch suite-sparse 3.7.0
  brew install octave
  brew install octave
**** caution -information above on using suite-sparse 3.7.0 might have been outdated by now , so try the normal build above which uses suite-sparse 4.2.0, and if that fails try the approach above  *****


Note that Octave has many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours.
Note that Octave has many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours.
Anonymous user