Skip to content

Commit

Permalink
Update howto-install-AMUSE.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
rieder committed Apr 10, 2022
1 parent e8a2046 commit 880bed1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions doc/install/howto-install-AMUSE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Ubuntu
******

You can choose between openmpi and mpich as desired, both work with AMUSE. Please do not install both!
In the examples below we choose GCC-7 as the compiler, but more recent versions of GCC will also work.

* For openmpi:

Expand Down Expand Up @@ -39,13 +38,15 @@ macOS


On macOS, you will first need to install Xcode. You can do so via the app store.
In the examples below we choose GCC-11 as the compiler. Older versions may not work on recent versions of macOS.
In macOS Big Sur and later, you may have to add the following line to your .bashrc or .zshrc profile:

.. code-block:: sh
export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
In this section we assume a default macOS installation (up to Big Sur) with MacPorts, but other methods (such as Homebrew) will also work.
In this section we assume a default macOS installation (up to Monterey) with MacPorts, but other methods (such as Homebrew) will also work.
Please do not install packages using more than one package manager (MacPorts, Homebrew and/or Conda), as this will almost certainly lead to problems!

You can choose between openmpi and mpich as desired, both work with AMUSE.
Please make sure to set the compilers installed here as default, as it will greatly simplify things later on.
Expand All @@ -55,20 +56,20 @@ In the examples below we choose GCC 9 as the compiler, but other versions of GCC

.. code-block:: sh
sudo port install gcc9 openmpi-gcc9 hdf5 gsl cmake gmp mpfr fftw-3 +gcc9 openblas lapack
sudo port install gcc11 openmpi-gcc11 hdf5 gsl cmake gmp mpfr fftw-3 +gcc11 openblas lapack
sudo port install python39
sudo port select --set mpi openmpi-gcc9-fortran
sudo port select --set gcc mp-gcc9
sudo port select --set mpi openmpi-gcc11-fortran
sudo port select --set gcc mp-gcc11
sudo port select --set python3 python39
* For mpich:
.. code-block:: sh
sudo port install gcc9 mpich-gcc9 hdf5 gsl cmake gmp mpfr fftw-3 +gcc9 openblas lapack
sudo port install gcc11 mpich-gcc11 hdf5 gsl cmake gmp mpfr fftw-3 +gcc11 openblas lapack
sudo port install python39
sudo port select --set mpi mpich-gcc9
sudo port select --set gcc mp-gcc9
sudo port select --set mpi mpich-gcc11
sudo port select --set gcc mp-gcc11
sudo port select --set python3 python39
Expand Down

1 comment on commit 880bed1

@rieder
Copy link
Member Author

@rieder rieder commented on 880bed1 Apr 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On macOS Monterey (and particularly on arm64 type processors), older versions of gcc may not work.
AMUSE works fine with gcc11, so I've updated the instructions to recommend this version.

Please sign in to comment.