... | ... | @@ -7,42 +7,40 @@ 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 Monterey 12.04
|
|
|
* XCode 13.4.1
|
|
|
* MacPort 2.7.2
|
|
|
* MacOS Sonoma 14.3
|
|
|
* MacPort 2.9.0
|
|
|
|
|
|
Python 3.9 was kept because there was no `+python310` variants for vtk package at the time of writting (June 2022).
|
|
|
|
|
|
If you have any other version, you may need to adapt compiler and python version. To benefit from everything, the most simple is to run:
|
|
|
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 gcc-devel hdf5 +fortran cmake +gui swig-python
|
|
|
sudo port install py39-numpy py39-h5py vtk +python39
|
|
|
sudo port install py39-scipy py39-matplotlib py39-pandas
|
|
|
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 python39
|
|
|
sudo port select --set python3 python39
|
|
|
sudo port select --set gcc mp-gcc-devel
|
|
|
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 py39-sphinx py39-numpydoc texlive-latex-extra dvipng ImageMagick
|
|
|
sudo port select --set docutils py39-docutils
|
|
|
sudo port select --set pygments py39-pygments
|
|
|
sudo port select --set sphinx py39-sphinx
|
|
|
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
|
|
|
```
|
|
|
|
|
|
To read tutorials:
|
|
|
```
|
|
|
sudo port install py39-jupyter
|
|
|
sudo port select --set ipython py39-ipython
|
|
|
sudo port select --set ipython3 py39-ipython
|
|
|
sudo port select --set ipython py311-ipython
|
|
|
sudo port select --set ipython3 py311-ipython
|
|
|
```
|
|
|
****
|
|
|
|
... | ... | |