Octave for macOS: Difference between revisions

633 bytes removed ,  29 April 2022
(→‎Package Managers: Make installation instructions more comparable.)
Line 64: Line 64:
→ ''Link to [https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/octave/package.py Octave package] there.''
→ ''Link to [https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/octave/package.py Octave package] there.''


[https://spack.io/ Spack] is a package management tool that supports the installation of multiple versions of software on macOS and other operating systems. It was created 2013 by Todd Gamblin and is currently being updated and developed by a large list of contributors (mainly via [https://github.com/spack/spack GitHub]).
To install the '''Command Line Tools''' type in the [https://support.apple.com/guide/terminal/welcome/mac Terminal App]:


'''Install GNU Octave using Spack:'''
  sudo xcode-select --install


# Install [https://developer.apple.com/xcode/ Xcode] via the '''Mac App Store'''.
Follow the [https://spack-tutorial.readthedocs.io/en/latest/tutorial_basics.html Spack tutorial] and type in the Terminal App:
#* Install the '''Command Line Tools''' by [https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac opening a terminal] and type <pre>sudo xcode-select --install</pre>
 
# Follow [https://spack-tutorial.readthedocs.io/en/latest/ Spack tutorial].
  spack install octave
# Update Spack by going to the local Spack repository (develop branch) folder and run <pre>git pull</pre>
  spack load octave
# Install Octave <pre>spack install octave</pre>
 
# To use Octave we need to first load the package <pre>spack load octave</pre>
  octave --gui


{{Note|The entire installation process can '''take up to a few hours'''. Octave has many dependencies which will be downloaded and installed prior to Octave.}}
{{Note|The entire installation process can '''take up to a few hours'''. Octave has many dependencies which will be downloaded and installed prior to Octave.}}