|
|
# Installing dependencies on Linux #
|
|
|
|
|
|
Here you will find the list of packages to install on different Linux distribution to be able to build the software.
|
|
|
The building has been tested on the following Linux distributions:
|
|
|
|
|
|
* [Ubuntu/Debian] (#ubuntu)
|
|
|
* [OpenSuze] (#opensuze)
|
|
|
* [CentOs] (#centos)
|
|
|
|
|
|
## In case of problem ##
|
|
|
|
|
|
This list of pre-requisites is available only for the latest version of LMGC90. Furthermore this page is updated only once in a while, so you may encounter some problems if that is case:
|
|
|
* 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 in the section which the closest to your distribution and hope it will work anyway
|
|
|
|
|
|
## Installing ##
|
|
|
|
|
|
### <a name=ubuntu>Ubuntu 12.04/14.04/16.04 Debian 7</a> ###
|
|
|
|
|
|
To download:
|
|
|
```shell
|
|
|
sudo apt-get install git
|
|
|
```
|
|
|
To compile:
|
|
|
```shell
|
|
|
sudo apt-get install cmake gcc g++ gfortran liblapack-dev swig python-dev python-numpy
|
|
|
```
|
|
|
To visualize:
|
|
|
```shell
|
|
|
sudo apt-get install python-vtk paraview
|
|
|
```
|
|
|
To build the documentation:
|
|
|
```shell
|
|
|
sudo apt-get install doxygen graphviz python-numpydoc texlive-latex-extra dvipng imagemagick
|
|
|
```
|
|
|
To read tutorials
|
|
|
```shell
|
|
|
sudo apt-get install python-pip
|
|
|
sudo pip install jupyter
|
|
|
```
|
|
|
|
|
|
### <a name=opensuze> OpenSuse Leap 42.1 </a> ###
|
|
|
|
|
|
To download:
|
|
|
```shell
|
|
|
sudo zypper install git
|
|
|
```
|
|
|
To compile:
|
|
|
```shell
|
|
|
sudo zypper install cmake gcc gcc-c++ gcc-fortran lapack-devel swig python-devel python-numpy-devel
|
|
|
```
|
|
|
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
|
|
|
```
|
|
|
### CentOS 7
|
|
|
|
|
|
To download:
|
|
|
```shell
|
|
|
sudo yum install git
|
|
|
```
|
|
|
To compile:
|
|
|
```shell
|
|
|
sudo yum install git cmake gcc gcc-c++ gcc-gfortran lapack-devel swig python-devel numpy
|
|
|
```
|
|
|
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:
|
|
|
```shell
|
|
|
sudo yum install epel-release
|
|
|
sudo yum install vtk-python paraview
|
|
|
```
|
|
|
To build the documentation:
|
|
|
```shell
|
|
|
sudo yum install doxygen graphviz tex-preview textlive-latex texlive-dvipng python-sphinx python-numpydoc ImageMagick
|
|
|
```
|
|
|
To read tutorials
|
|
|
```shell
|
|
|
sudo yum install python-pip
|
|
|
sudo pip install jupyter
|
|
|
``` |
|
|
\ No newline at end of file |