Getting Kratos Binaries for Linux¶
This page covers the process of downloading a compiled version of Kratos for Linux and how to use it to run an example.
Minimum requirements¶
Ubuntu 14.04 or greater. Other flavors of Linux are supported but not tested.
Download and Installation¶
You can find the Kratos binaries for Linux in the Release Section:
- Download the tgz file for linux
- Extract the contents of the tgz in a location of your choice
- Recommended: Execute the
install.sh
script
This finalizes the installation process.
Usage¶
- Download any example of your interest from the Examples Repository and execute:
>kratos MainKratos.py
Advanced¶
If you prefer to skip the installation part, or have multiple versions of kratos installed simultaneously:
- Copy this
runner.sh
script and edit the contents of theKRATOS_ROOT
variable:
KRATOS_ROOT=/path/to/kratos # Please change this variable
export PYTHONHOME=${KRATOS_ROOT}
export PYTHONPATH=${KRATOS_ROOT}:${KRATOS_ROOT}/python34.zip
export LD_LIBRARY_PATH=${KRATOS_ROOT}/libs:${KRATOS_ROOT}/OpenMPI/lib:/home/roigcarlo/KratosInstall/libs
${KRATOS_ROOT}/runkratos $*
Do not forget to give the script execution rights:
>chmod +x runner.sh
- Make an alias for the script
>echo "alias kratos=runner.sh" >> $HOME/.bashrc
- Open the terminal and execute the problem script using kratos:
>kratos MainKratos.py