The only supported way to install LMGC90's prerequisites by the developper teams is to use the [MacPort package manager](https://www.macports.org). There is no need for any other package manager (Homebrew or Anaconda) and installing those should be done only at your own risk and no help can be provided using those.
## Installing ##
Theses instructions has been used to successfully build LMGC90 on an Apple M1 Pro (Macbook Pro) with:
* MacOS Sonoma 14.3
* MacPort 2.9.0
The following instructions were working at the time of writing (spring 2023), and the version number of `gcc`
package as well as python may have to be updated at a later date.
```
sudo port install gcc13 hdf5 +fortran cmake +gui swig-python
sudo port install py311-numpy py311-h5py vtk +python311
sudo port install py311-scipy py311-matplotlib py311-pandas
```
Then you need to set the compiler and python as the default on your system:
```
sudo port select --set python python311
sudo port select --set python3 python311
sudo port select --set gcc mp-gcc13
```
and then download Paraview software from [here](http://www.paraview.org/download)
To build the documentation:
```
sudo port install doxygen graphviz py311-sphinx py311-numpydoc texlive-latex-extra dvipng ImageMagick
The only supported way to install LMGC90's prerequisites by the developper teams is to use the [MacPort package manager](https://www.macports.org). There is no need for any other package manager (Homebrew or Anaconda) and installing those should be done only at your own risk and no help can be provided using those.
## Installing ##
Theses instructions has been used to successfully build LMGC90 on an Apple M1 Pro (Macbook Pro) with:
* MacOS Sonoma 15.5
* MacPort 2.10.7
The following instructions were working at the time of writing (summer 2025),
and the version number of `gcc` package as well as python may have to be updated at a later date.
```
sudo port install gcc14 hdf5 +fortran cmake +gui swig-python
sudo port install 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:
```
sudo port select --set python python312
sudo port select --set python3 python312
sudo port select --set gcc mp-gcc14
```
It is also recommended to install virtualenvwrapper and to create a environment