... | ... | @@ -7,40 +7,52 @@ The only supported way to install LMGC90's prerequisites by the developper teams |
|
|
## 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
|
|
|
* MacOS Sonoma 15.5
|
|
|
* MacPort 2.10.7
|
|
|
|
|
|
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.
|
|
|
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 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
|
|
|
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 python311
|
|
|
sudo port select --set python3 python311
|
|
|
sudo port select --set gcc mp-gcc13
|
|
|
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
|
|
|
for an easy installation of vtk python module:
|
|
|
```
|
|
|
sudo port install py312-virtualenvwrapper
|
|
|
echo "export VIRTUALENVWRAPPER_PYTHON='/opt/local/bin/python3.12'" >> ~/.zprofile
|
|
|
echo "export VIRTUALENVWRAPPER_VIRTUALENV='/opt/local/bin/virtualenv-3.12'" >> ~/.zprofile
|
|
|
echo "export VIRTUALENVWRAPPER_VIRTUALENV_CLONE='/opt/local/bin/virtualenv-clone-3.12'" >> ~/.zprofile
|
|
|
echo "source /opt/local/bin/virtualenvwrapper.sh-3.12" >> ~/.zprofile
|
|
|
source /opt/local/bin/virtualenvwrapper.sh-3.12
|
|
|
mkvirtualenv --system-site-packages lmgc90
|
|
|
python -m pip install vtk
|
|
|
```
|
|
|
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
|
|
|
sudo port select --set docutils py311-docutils
|
|
|
sudo port select --set pygments py311-pygments
|
|
|
sudo port select --set sphinx py311-sphinx
|
|
|
sudo port install doxygen graphviz py312-sphinx py312-numpydoc 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 py39-jupyter
|
|
|
sudo port select --set ipython py311-ipython
|
|
|
sudo port select --set ipython3 py311-ipython
|
|
|
sudo port install py312-jupyter
|
|
|
sudo port select --set ipython py312-ipython
|
|
|
sudo port select --set ipython3 py312-ipython
|
|
|
```
|
|
|
****
|
|
|
|
... | ... | |