Octave for macOS: Difference between revisions

Jump to navigation Jump to search
→‎Package Managers: Standard Xcode install instructions.
(→‎Fink: Standard Xcode install instructions.)
(→‎Package Managers: Standard Xcode install instructions.)
Line 38: Line 38:
[https://brew.sh/ Homebrew] is a package management system that simplifies the installation of software on macOS. It is a free/open source software project to simplify installation of other free/open source software. It is similar in aim and function to MacPorts and Fink. It was written by Max Howell and has gained popularity in the Ruby on Rails community and earned praise for its extensibility.
[https://brew.sh/ Homebrew] is a package management system that simplifies the installation of software on macOS. It is a free/open source software project to simplify installation of other free/open source software. It is similar in aim and function to MacPorts and Fink. It was written by Max Howell and has gained popularity in the Ruby on Rails community and earned praise for its extensibility.


Install GNU Octave using Homebrew:
'''Install GNU Octave using Homebrew:'''


First, install Homebrew:
* Install [https://developer.apple.com/xcode/ Xcode] via the '''Mac App Store'''.
*Install Xcode via the Mac App Store.
** 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 <code>sudo xcode-select --install</code>.
** Install the command line tools by {{Codeline|xcode-select --install}}.
* Follow [https://brew.sh/ Homebrew's installation instructions].
*Follow [https://brew.sh/ Homebrew's installation instructions].
* Ensure brew itself has the latest definitions by running <code>brew update</code> in the terminal.
 
To install Octave, update to the latest package definitions with {{Codeline|brew update}}, and then install Octave.
 
First we ensure brew itself has the latest definitions:
<pre>brew update</pre>


Then, we install Octave
Then, we install Octave
Line 90: Line 85:
'''Install GNU Octave using MacPorts:'''
'''Install GNU Octave using MacPorts:'''


* Install [https://developer.apple.com/xcode/ Xcode] via the '''Mac App Store'''.
** 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 <code>sudo xcode-select --install</code>.
* Follow the instruction given at the [https://www.macports.org/install.php MacPorts website].
* Follow the instruction given at the [https://www.macports.org/install.php MacPorts website].
* Update your installation by running {{Codeline|sudo port selfupdate}} and {{Codeline|sudo port upgrade outdated}} in the terminal.
* Update your installation by running {{Codeline|sudo port selfupdate}} and {{Codeline|sudo port upgrade outdated}} in the terminal.
Line 100: Line 97:
'''Install GNU Octave using Spack:'''
'''Install GNU Octave using Spack:'''


First, install Spack:
* Install [https://developer.apple.com/xcode/ Xcode] via the '''Mac App Store'''.
*Install Xcode via the Mac App Store.
** 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 <code>sudo xcode-select --install</code>.
** Install the command line tools by {{Codeline|xcode-select --install}}.
* Follow [https://spack-tutorial.readthedocs.io/en/latest/ Spack tutorial].
* Follow [https://spack-tutorial.readthedocs.io/en/latest/ Spack tutorial].


Navigation menu