|  |  | # Installing dependencies on MacOs # | 
|  |  |  | 
|  |  | ## MacPorts ## | 
|  |  | ## Choose: MacPorts or Homebrew ## | 
|  |  |  | 
|  |  | 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. | 
|  |  | 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. | 
|  |  |  | 
|  |  | ## Installing ## | 
|  |  | ## Installing with MacPorts ## | 
|  |  |  | 
|  |  | 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 | 
|  |  | * MacOS Sequoia 15.7.1 | 
|  |  | * MacPort 2.11.5 | 
|  |  |  | 
|  |  | The following instructions were working at the time of writing (summer 2025), | 
|  |  | 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 gcc14 hdf5 +fortran cmake +gui swig-python | 
|  |  | 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 | 
|  |  | ``` | 
| ... | ... | @@ -25,7 +28,7 @@ sudo port select --set python python312 | 
|  |  | sudo port select --set python3 python312 | 
|  |  | sudo port select --set pip pip312 | 
|  |  | sudo port select --set pip3 pip312 | 
|  |  | sudo port select --set gcc mp-gcc14 | 
|  |  | sudo port select --set gcc mp-gcc15 | 
|  |  | ``` | 
|  |  |  | 
|  |  | It is also recommended to install virtualenvwrapper and to create a environment | 
| ... | ... | @@ -56,6 +59,19 @@ sudo port install py312-jupyter | 
|  |  | sudo port select --set ipython py312-ipython | 
|  |  | sudo port select --set ipython3 py312-ipython | 
|  |  | ``` | 
|  |  |  | 
|  |  | ## Installing with Homebrew ## | 
|  |  |  | 
|  |  | At the time of writing, what worked is: | 
|  |  | ```shell | 
|  |  | brew install cmake gcc swig python numpy scipy openblas vtk gmsh | 
|  |  | ``` | 
|  |  | It is also strongly recommended to install virtualenvwrapper | 
|  |  | to manage python virtual environment: | 
|  |  | ```shell | 
|  |  | brew install virtualenvwrapper | 
|  |  | ``` | 
|  |  |  | 
|  |  | **** | 
|  |  |  | 
|  |  | | [back](./Prerequisites) | [next](./Download_and_install) | | 
| ... | ... |  | 
| ... | ... |  |