Update linux_dependencies_install authored by Rémy Mozul's avatar Rémy Mozul
# Installing dependencies on Linux #
Here you will find the list of mandatory packages necessary to build the software on different Linux distribution.
The building has been recently tested on the following Linux distributions:
* [Ubuntu/Debian](#ubuntu)
* [ArchLinux](#archlinux)
* [AlmaLinux](#almalinux)
This list of pre-requisites is available only for the latest version of LMGC90.
## In case of problem ##
Since this page is updated only once in a while, so you may encounter some problems :
* if a command does not work for your distribution -> file a issue (one of the thumbnail at the top of this page) and we will look into it.
* if your Linux distribution is not here -> try the commands from the section which is the closest to your distribution and hope it will work anyway.
## Installing ##
### <a name=ubuntu>Ubuntu 22.04</a> ###
To compile:
```shell
sudo apt-get install cmake gcc g++ gfortran liblapack-dev swig python3-dev python3-numpy python-is-python3
```
Optional:
```shell
sudo apt-get install libhdf5-dev h5utils python3-h5py
```
Optional but recommended:
```shell
sudo apt-get install python3-scipy python3-matplotlib python3-pandas
```
To visualize:
```shell
sudo apt-get install python3-vtk9 paraview
```
To build the documentation:
```shell
sudo apt-get install doxygen graphviz python3-numpydoc texlive-latex-extra dvipng imagemagick
```
To read tutorials
```shell
sudo apt-get install jupyter-notebook
```
### <a name=archlinux> ArchLinux</a> ###
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
```
### <a name=almalinux> AlmaLinux 9 </a> ###
To compile:
```shell
sudo dnf update
sudo dnf install epel-release
sudo dnf --enablerepo=crb install gcc gcc-c++ gcc-gfortran cmake swig lapack-devel blas-devel python3-devel python3-numpy
```
Optional
```shell
dnf --enablerepo=crb hdf5-devel python3-h5py
```
Optional but recommended:
```shell
sudo dnf install python3-scipy python3-matplotlib python3-pandas
```
To visualize:
```shell
sudo dnf --enbalerepo=crb python3-vtk
```
<!--To generate the documentation:
```shell
dnf install --enablerepo=powertools graphviz python3-numpydoc doxygen texlive-latex texlive-dvipng ImageMagick
```
-->
****
| [back](./Prerequisites) | [next](./Download_and_install) |
# Installing dependencies on Linux #
Here you will find the list of mandatory packages necessary to build the software on different Linux distribution.
The building has been recently tested on the following Linux distributions:
* [Ubuntu/Debian](#ubuntu)
* [ArchLinux](#archlinux)
* [AlmaLinux](#almalinux)
This list of pre-requisites is available only for the latest version of LMGC90.
## In case of problem ##
Since this page is updated only once in a while, so you may encounter some problems :
* if a command does not work for your distribution -> file a issue (one of the thumbnail at the top of this page) and we will look into it.
* if your Linux distribution is not here -> try the commands from the section which is the closest to your distribution and hope it will work anyway.
## Installing ##
### <a name=ubuntu>Ubuntu 24.04</a> ###
To compile:
```shell
sudo apt-get install cmake gcc g++ gfortran liblapack-dev swig python3-dev python3-numpy python-is-python3
```
Optional:
```shell
sudo apt-get install libhdf5-dev h5utils python3-h5py
```
Optional but recommended:
```shell
sudo apt-get install python3-scipy python3-matplotlib python3-pandas
```
To visualize:
```shell
sudo apt-get install python3-vtk9 paraview python3-paraview
```
To build the documentation:
```shell
sudo apt-get install doxygen graphviz python3-numpydoc texlive-latex-extra dvipng imagemagick
```
To read tutorials
```shell
sudo apt-get install jupyter-notebook
```
### <a name=archlinux> ArchLinux</a> ###
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
```
### <a name=almalinux> AlmaLinux 9 </a> ###
To compile:
```shell
sudo dnf update
sudo dnf install epel-release
sudo dnf --enablerepo=crb install gcc gcc-c++ gcc-gfortran cmake swig lapack-devel blas-devel python3-devel python3-numpy
```
Optional
```shell
dnf --enablerepo=crb hdf5-devel python3-h5py
```
Optional but recommended:
```shell
sudo dnf install python3-scipy python3-matplotlib python3-pandas
```
To visualize:
```shell
sudo dnf --enbalerepo=crb python3-vtk
```
<!--To generate the documentation:
```shell
dnf install --enablerepo=powertools graphviz python3-numpydoc doxygen texlive-latex texlive-dvipng ImageMagick
```
-->
****
| [back](./Prerequisites) | [next](./Download_and_install) |
|:------------------------|-------------------------------:|
\ No newline at end of file