... | ... | @@ -5,10 +5,8 @@ The building has been recently tested on the following Linux distributions: |
|
|
|
|
|
* [Ubuntu/Debian](#ubuntu)
|
|
|
* [ArchLinux](#archlinux)
|
|
|
* [CentOs](#centos)
|
|
|
* [AlmaLinux](#almalinux)
|
|
|
|
|
|
The following have not been tested for a long time and are kept for reference:
|
|
|
* [OpenSuze](#opensuze)
|
|
|
|
|
|
This list of pre-requisites is available only for the latest version of LMGC90.
|
|
|
|
... | ... | @@ -20,7 +18,7 @@ Since this page is updated only once in a while, so you may encounter some probl |
|
|
|
|
|
## Installing ##
|
|
|
|
|
|
### <a name=ubuntu>Ubuntu 20.04</a> ###
|
|
|
### <a name=ubuntu>Ubuntu 22.04</a> ###
|
|
|
|
|
|
To compile:
|
|
|
```shell
|
... | ... | @@ -36,7 +34,7 @@ sudo apt-get install python3-scipy python3-matplotlib python3-pandas |
|
|
```
|
|
|
To visualize:
|
|
|
```shell
|
|
|
sudo apt-get install python3-vtk7 paraview
|
|
|
sudo apt-get install python3-vtk9 paraview
|
|
|
```
|
|
|
To build the documentation:
|
|
|
```shell
|
... | ... | @@ -46,39 +44,34 @@ To read tutorials |
|
|
```shell
|
|
|
sudo apt-get install jupyter-notebook
|
|
|
```
|
|
|
For ubuntu 18, everything should work the same way except that `python-is-python3` is not available and each time the `python` command is run, then it should be replace by `python3`.
|
|
|
For ubuntu 16 is the same as 18 except that `python3-vtk6` should be used and that hdf5 is not available from the package manager and must be compiled from sources instead.
|
|
|
|
|
|
|
|
|
### <a name=archlinux> ArchLinux</a> ###
|
|
|
|
|
|
The necessary recommended packages needed to build and use LMGC90 are:
|
|
|
The necessary recommended packages needed to build and use LMGC90 are (vtk display not tested):
|
|
|
```shell
|
|
|
sudo pacman -S gcc-fortran make cmake swig python
|
|
|
sudo pacman -S python-numpy python-scipy python-matplotlib python-h5py python-pandas
|
|
|
sudo pacman -S vtk glew openmpi netcdf proj gdal pugixml libtheora ffmpeg unixodbc pdal qt5-base
|
|
|
```
|
|
|
### <a name=centos> CentOS 8 </a> ###
|
|
|
### <a name=almalinux> AlmaLinux 9 </a> ###
|
|
|
|
|
|
To compile:
|
|
|
```shell
|
|
|
sudo dnf update
|
|
|
sudo dnf install epel-release
|
|
|
sudo dnf install git make cmake gcc gcc-c++ gcc-gfortran swig python3-devel python3-numpy python3-pip
|
|
|
sudo dnf --enablerepo=powertools install lapack-devel
|
|
|
sudo dnf --enablerepo=crb install gcc gcc-c++ gcc-gfortran cmake swig lapack-devel blas-devel python3-devel python3-numpy
|
|
|
```
|
|
|
Optional
|
|
|
```shell
|
|
|
sudo dnf install redhat-rpm-config
|
|
|
sudo dnf --enablerepo=powertools install hdf5-devel python3-h5py
|
|
|
dnf --enablerepo=crb hdf5-devel python3-h5py
|
|
|
```
|
|
|
Optional but recommended:
|
|
|
```shell
|
|
|
sudo dnf install python3-scipy python3-matplotlib python3-pandas
|
|
|
```
|
|
|
To visualize, some extra packages, not provided by the standard package repository, are needed. The recommended (simplest) way to install it
|
|
|
is to use `pip`. But to not mess with default installation, it is recommended to install for the current user only. Besides, for the pip package to work, there are some packages that may be not installed by default on some headless servers:
|
|
|
To visualize:
|
|
|
```shell
|
|
|
sudo dnf install mesa-libGLU libXext libXrender libSM
|
|
|
pip3 install --user vtk
|
|
|
sudo dnf --enbalerepo=crb python3-vtk
|
|
|
```
|
|
|
<!--To generate the documentation:
|
|
|
```shell
|
... | ... | @@ -87,59 +80,6 @@ dnf install --enablerepo=powertools graphviz python3-numpydoc doxygen texlive-la |
|
|
-->
|
|
|
|
|
|
|
|
|
### CentOS 7 ###
|
|
|
|
|
|
**Please note that in the compilation step later, it will be needed to replace the `cmake` command by `cmake3` !**
|
|
|
|
|
|
To compile:
|
|
|
```shell
|
|
|
sudo yum install epel-release
|
|
|
sudo yum install git make cmake3 gcc gcc-c++ gcc-gfortran lapack-devel swig python3-devel python3-numpy python3-pip
|
|
|
```
|
|
|
Optional but recommended:
|
|
|
```shell
|
|
|
sudo yum install python36-scipy
|
|
|
```
|
|
|
To visualize, some extra packages, not provided by the standard package repository, are needed. The recommended (simplest) way to install it
|
|
|
is to use `pip`. But to not mess with default installation, it is recommended to install for the current user only. Besides, for the pip package to work, there are some packages that may be not installed by default on some headless servers:
|
|
|
```shell
|
|
|
sudo yum install mesa-libGLU libXext libXrender libSM
|
|
|
pip3 install --user vtk
|
|
|
```
|
|
|
HDF5 is also an optional, but strongly recommended dependency. Unfortunately the version needed by LMGC90 must be above 1.10, whereas the default version on CentOS 7 is 1.8. So the user must compile/install this version by himself or ask his/her administrator to do that.
|
|
|
|
|
|
### <a name=opensuze> OpenSuse Leap 42.1 </a> ###
|
|
|
|
|
|
To compile:
|
|
|
```shell
|
|
|
sudo zypper install cmake gcc gcc-c++ gcc-fortran lapack-devel swig python-devel python-numpy-devel
|
|
|
```
|
|
|
Optional:
|
|
|
```shell
|
|
|
sudo zypper install zlib-devel hdf5-devel python-h5py
|
|
|
```
|
|
|
Optional but recommended:
|
|
|
```shell
|
|
|
sudo zypper install python-scipy python-matplotlib python-pandas
|
|
|
```
|
|
|
To visualize:
|
|
|
```shell
|
|
|
sudo zypper install python-vtk paraview
|
|
|
```
|
|
|
Due to some problem one must add to the *.bashrc* file a line similar to:
|
|
|
```shell
|
|
|
export LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib64
|
|
|
```
|
|
|
To build the documentation:
|
|
|
```shell
|
|
|
sudo zypper install doxygen graphviz python-numpydoc texlive-dvipng ImageMagick
|
|
|
```
|
|
|
To read tutorials
|
|
|
```shell
|
|
|
sudo zypper install python-pip
|
|
|
sudo pip install jupyter
|
|
|
```
|
|
|
|
|
|
****
|
|
|
|
|
|
| [back](./Prerequisites) | [next](./Download_and_install) |
|
... | ... | |