Changes
Page history
Update macos_dependencies_install
authored
May 27, 2025
by
Rémy Mozul
Show whitespace changes
Inline
Side-by-side
macos_dependencies_install.md
View page @
3db67c1c
...
...
@@ -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 1
4.3
*
MacPort 2.
9.0
*
MacOS Sonoma 1
5.5
*
MacPort 2.
10.7
The following instructions were working at the time of writing (s
pring
202
3
),
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 (s
ummer
202
5
),
and the version number of
`gcc`
package as well as python may have to be updated at a later date.
```
sudo port install gcc1
3
hdf5 +fortran cmake +gui swig-python
sudo port install py31
1
-numpy py31
1
-h5py
vtk +python311
sudo port install py31
1
-scipy py31
1
-matplotlib py31
1
-pandas
sudo port install gcc1
4
hdf5 +fortran cmake +gui swig-python
sudo port install py31
2
-numpy py31
2
-h5py
sudo port install py31
2
-scipy py31
2
-matplotlib py31
2
-pandas
```
Then you need to set the compiler and python as the default on your system:
```
sudo port select --set python python31
1
sudo port select --set python3 python31
1
sudo port select --set gcc mp-gcc1
3
sudo port select --set python python31
2
sudo port select --set python3 python31
2
sudo port select --set gcc mp-gcc1
4
```
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 py31
1
-sphinx py31
1
-numpydoc texlive-latex-extra dvipng ImageMagick
sudo port select --set docutils py31
1
-docutils
sudo port select --set pygments py31
1
-pygments
sudo port select --set sphinx py31
1
-sphinx
sudo port install doxygen graphviz py31
2
-sphinx py31
2
-numpydoc texlive-latex-extra dvipng ImageMagick
sudo port select --set docutils py31
2
-docutils
sudo port select --set pygments py31
2
-pygments
sudo port select --set sphinx py31
2
-sphinx
```
To read tutorials:
```
sudo port install py3
9
-jupyter
sudo port select --set ipython py31
1
-ipython
sudo port select --set ipython3 py31
1
-ipython
sudo port install py3
12
-jupyter
sudo port select --set ipython py31
2
-ipython
sudo port select --set ipython3 py31
2
-ipython
```
****
...
...
...
...