Octave for macOS: Difference between revisions

Jump to navigation Jump to search
453 bytes removed ,  29 April 2022
→‎Package Managers: Make installation instructions more comparable.
(→‎Homebrew: Make description easier to follow.)
(→‎Package Managers: Make installation instructions more comparable.)
Line 22: Line 22:


Follow the [https://docs.anaconda.com/anaconda/install/mac-os/ Anaconda installation instructions].
Follow the [https://docs.anaconda.com/anaconda/install/mac-os/ Anaconda installation instructions].
In the [https://support.apple.com/guide/terminal/welcome/mac Terminal App] type:


   conda create --name octave
   conda create --name octave
   conda activate octave
   conda activate octave
   conda install -c conda-forge octave
   conda install -c conda-forge octave
 
  octave --gui


=== Homebrew ===
=== Homebrew ===
Line 36: Line 40:
In the [https://support.apple.com/guide/terminal/welcome/mac Terminal App] type:
In the [https://support.apple.com/guide/terminal/welcome/mac Terminal App] type:


  brew update
  brew update
  brew upgrade
  brew upgrade
  brew install octave
  brew install octave
 
 
  octave --gui
  octave --gui


In case of trouble try <code>brew doctor</code>, see the [https://docs.brew.sh/Troubleshooting Homebrew Troubleshooting Guide].
In case of trouble try <code>brew doctor</code>, see the [https://docs.brew.sh/Troubleshooting Homebrew Troubleshooting Guide].
Line 47: Line 51:
→ ''Link to [https://github.com/macports/macports-ports/blob/master/math/octave/Portfile Octave package] there.''
→ ''Link to [https://github.com/macports/macports-ports/blob/master/math/octave/Portfile Octave package] there.''


[http://www.macports.org/ MacPorts], formerly called DarwinPorts, was started in 2002 as part of the OpenDarwin project, with the involvement of a number of Apple Inc. employees including Landon Fuller, Kevin Van Vechten, and Jordan Hubbard.
Follow the [https://www.macports.org/install.php MacPorts installation instructions].


'''Install GNU Octave using MacPorts:'''
In the [https://support.apple.com/guide/terminal/welcome/mac Terminal App] type:


# Install [https://developer.apple.com/xcode/ Xcode] via the '''Mac App Store'''.
  sudo port selfupdate
#* 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>
  sudo port upgrade outdated
# Follow [https://www.macports.org/install.php MacPorts' installation instructions].
  sudo port install octave
# Update your installation <pre>sudo port selfupdate&#10;sudo port upgrade outdated</pre>
 
# Install Octave <pre>sudo port install octave</pre>
  octave --gui


===Spack===
===Spack===

Navigation menu