The historical supported way to install LMGC90's prerequisites by the developper teams is to use the [MacPort package manager](https://www.macports.org).
It should also now possible to use [Homebrew](https://brew.sh/). Anaconda is still not supported.
Whatever you choose, mixing the two manager is not recommended and if you were to do it... you are
on your own.
It should also now possible to use [Homebrew](https://brew.sh/) or [Conda](https://)
Whatever you choose, mixing the managers is not recommended and if you were to do it... you are on your own.
## Installing with MacPorts ##
Theses instructions has been used to successfully build LMGC90 on an Apple M1 Pro (Macbook Pro) with:
* MacOS Sequoia 15.7.1
* MacPort 2.11.5
* MacOS Tahoe 26.1
* MacPort 2.11.6
The following instructions were working at the time of writing (fall 2025),
and the version number of `gcc` package as well as python may have to be updated at a later date.
```
sudo port install gcc15 hdf5 +gfortran cmake +gui swig-python
sudo port install py312-pip py312-numpy py312-h5py
sudo port install py312-scipy py312-matplotlib py312-pandas
```
Then you need to set the compiler and python as the default on your system:
```
```shell
sudo port install gcc15 hdf5 +gfortran cmake +gui swig-python py312-pip
sudo port select--set python python312
sudo port select--set python3 python312
sudo port select--set pip pip312
...
...
@@ -47,29 +40,23 @@ and then download Paraview software from [here](http://www.paraview.org/download
To build the documentation:
```
sudo port install doxygen graphviz py312-sphinx py312-numpydoc texlive-latex-extra dvipng ImageMagick
sudo port install doxygen graphviz py312-sphinx texlive-latex-extra dvipng ImageMagick
sudo port select --set docutils py312-docutils
sudo port select --set pygments py312-pygments
sudo port select --set sphinx py312-sphinx
```
To read tutorials:
```
sudo port install py312-jupyter
sudo port select --set ipython py312-ipython
sudo port select --set ipython3 py312-ipython
```
## Installing with Homebrew ##
Theses instructions has been used to successfully build LMGC90 on an Apple M1 Pro (Macbook Pro) with: