... | ... | @@ -5,10 +5,10 @@ The building has been recently tested on the following Linux distributions: |
|
|
|
|
|
* [Ubuntu/Debian](#ubuntu)
|
|
|
* [ArchLinux](#archlinux)
|
|
|
* [CentOs](#centos)
|
|
|
|
|
|
The following have not been tested for a long time and are kept for reference:
|
|
|
* [OpenSuze](#opensuze)
|
|
|
* [CentOs](#centos)
|
|
|
|
|
|
This list of pre-requisites is available only for the latest version of LMGC90.
|
|
|
|
... | ... | @@ -57,72 +57,90 @@ sudo pacman -S gcc-fortran make cmake swig python |
|
|
sudo pacman -S python-numpy python-scipy python-matplotlib python-h5py
|
|
|
sudo pacman -S vtk glew openmpi netcdf proj gdal pugixml libtheora ffmpeg unixodbc pdal qt5-base
|
|
|
```
|
|
|
|
|
|
### <a name=opensuze> OpenSuse Leap 42.1 </a> ###
|
|
|
### <a name=centos> CentOS 8 </a> ###
|
|
|
|
|
|
To compile:
|
|
|
```shell
|
|
|
sudo zypper install cmake gcc gcc-c++ gcc-fortran lapack-devel swig python-devel python-numpy-devel
|
|
|
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
|
|
|
```
|
|
|
Optional:
|
|
|
Optional
|
|
|
```shell
|
|
|
sudo zypper install zlib-devel hdf5-devel
|
|
|
sudo dnf install redhat-rpm-config
|
|
|
sudo dnf --enablerepo=powertools install hdf5-devel python3-h5py
|
|
|
```
|
|
|
Optional but recommended:
|
|
|
```shell
|
|
|
sudo zypper install python-scipy
|
|
|
sudo dnf install python3-scipy
|
|
|
```
|
|
|
To visualize:
|
|
|
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 zypper install python-vtk paraview
|
|
|
sudo dnf install mesa-libGLU libXext libXrender libSM
|
|
|
pip3 install --user vtk
|
|
|
```
|
|
|
Due to some problem one must add to the *.bashrc* file a line similar to:
|
|
|
<!--To generate the documentation:
|
|
|
```shell
|
|
|
export LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib64
|
|
|
dnf install --enablerepo=powertools graphviz python3-numpydoc doxygen texlive-latex texlive-dvipng ImageMagick
|
|
|
```
|
|
|
To build the documentation:
|
|
|
-->
|
|
|
|
|
|
|
|
|
### <a name=centos> CentOS 7 </a> ###
|
|
|
|
|
|
**Please note that in the compilation step later, it will be needed to replace the `cmake` command by `cmake3` !**
|
|
|
|
|
|
To compile:
|
|
|
```shell
|
|
|
sudo zypper install doxygen graphviz python-numpydoc texlive-dvipng ImageMagick
|
|
|
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
|
|
|
```
|
|
|
To read tutorials
|
|
|
Optional but recommended:
|
|
|
```shell
|
|
|
sudo zypper install python-pip
|
|
|
sudo pip install jupyter
|
|
|
sudo yum install python3-scipy
|
|
|
```
|
|
|
### <a name=centos> CentOS 7 </a> ###
|
|
|
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 yum install git cmake gcc gcc-c++ gcc-gfortran lapack-devel swig python-devel numpy
|
|
|
sudo zypper install cmake gcc gcc-c++ gcc-fortran lapack-devel swig python-devel python-numpy-devel
|
|
|
```
|
|
|
Optional:
|
|
|
As HDF5 library is not provided by standard repository, an extra repository
|
|
|
must be added before installing dependencies:
|
|
|
```shell
|
|
|
sudo yum install epel-release
|
|
|
sudo yum install hdf5-devel
|
|
|
sudo zypper install zlib-devel hdf5-devel
|
|
|
```
|
|
|
Optional but recommended:
|
|
|
```shell
|
|
|
sudo yum install scipy
|
|
|
sudo zypper install python-scipy
|
|
|
```
|
|
|
To visualize, some extra packages, not provided by the standard package repository, are
|
|
|
needed. Thus an extra repository must be added before installing the dependencies:
|
|
|
To visualize:
|
|
|
```shell
|
|
|
sudo yum install epel-release
|
|
|
sudo yum install vtk-python paraview
|
|
|
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 yum install doxygen graphviz tex-preview textlive-latex texlive-dvipng python-sphinx python-numpydoc ImageMagick
|
|
|
sudo zypper install doxygen graphviz python-numpydoc texlive-dvipng ImageMagick
|
|
|
```
|
|
|
To read tutorials
|
|
|
```shell
|
|
|
sudo yum install python-pip
|
|
|
sudo zypper install python-pip
|
|
|
sudo pip install jupyter
|
|
|
```
|
|
|
|
|
|
****
|
|
|
|
|
|
| [back](./Prerequisites) | [next](./Download_and_install) |
|
|
|
|:------------------------|-------------------------------:| |
|
|
|:------------------------|-------------------------------:| |
|
|
\ No newline at end of file |