Skip to content

installationLinux

Andrea Alfonsi - INL edited this page Dec 12, 2017 · 30 revisions

Installation of RAVEN libraries

RAVEN libraries can be installed using two alternative methods:

  • apt-get (Ubuntu) or dnf (Fedora)
sudo apt-get install libtool git python-dev swig g++ \
python3-dev python-numpy python-sklearn python-h5py
dnf install swig libtool gcc-c++ redhat-rpm-config python-devel \
  python3-devel numpy h5py scipy python-scikit-learn \
  python-matplotlib-qt4
conda create --name raven_libraries -y numpy=1.11.0 \
h5py=2.6.0 scipy=0.17.1 scikit-learn=0.17.1 \
matplotlib=1.5.1 python=2.7 hdf5 swig pylint lxml

Optionally, if you want to be able to edit and rebuild the manual, you can install TEX Live and its related packages:

[~/projects]> sudo apt-get install texlive-latex-base \
texlive-extra-utils texlive-latex-extra texlive-math-extra

Clone RAVEN

Open a terminal window and cd into the folder where you want to install RAVEN (e.g., projects)

[~]> mkdir projects
[~]> cd projects
[~/projects]> git clone https://github.com/idaholab/raven.git
[~/projects]> cd raven
[~/projects/raven]> git submodule init
[~/projects/raven]> git submodule update

Compiling RAVEN

[~/projects/raven]> make -j2 

Test RAVEN installation

[~/projects/raven]> ./run_tests -j2

A large number of tests are run in order to check that the installation step has been successful. At the end, a screen output is generated similar to the one below:

383 passed, 19 skipped, 0 pending, 0 failed

Update RAVEN

[~/projects]> cd raven
[~/projects/raven]> git pull
[~/projects/raven]> make -j2
[~/projects/raven]> ./run_tests -j2