364
edits
Line 62: | Line 62: | ||
[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: | ||
brew tap homebrew/science | |||
Then, if you do not have a fortran compiler installed, type | Then, if you do not have a fortran compiler installed, type | ||
brew install gfortran | |||
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) | ||
brew tap homebrew/versions | |||
brew versions suite-sparse | |||
Then go to the install directory of brew ({{Codeline|<nowiki>/usr/local</nowiki>}} by default) and get the formula for the older version (the revision number, {{Codeline|<nowiki>ff53163</nowiki>}}, is shown in the fourth column by in the previous command's output) | Then go to the install directory of brew ({{Codeline|<nowiki>/usr/local</nowiki>}} by default) and get the formula for the older version (the revision number, {{Codeline|<nowiki>ff53163</nowiki>}}, is shown in the fourth column by in the previous command's output) | ||
cd /usr/local/Library/Taps/homebrew-science/ | |||
git checkout ff53163 /usr/local/Library/Taps/homebrew-science/suite-sparse.rb | |||
Now compile and activate the selected version and install Octave | Now compile and activate the selected version and install Octave | ||
brew unlink suite-sparse | |||
brew install -v ./suite-sparse.rb | |||
brew switch suite-sparse 3.7.0 | |||
brew install octave | |||
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. |
edits