How to Install COOLFluiD Dependencies Automatically

COOLFluiD framework depends on some libraries.

You can have a look at the full list of requirements.

Because of that, setting up the dependencies of COOLFluiD can be quite a hassle, so the COOLTeam has made a script to automate the installation of COOLFluiD dependencies.

This script will install the needed software locally, instead of on your system, so it will be usable in any Linux environment.

To run successfully this script you will only need to have in your system:

  • C Compiler gcc >= 3.3
  • C++ Compiler g++ >= 3.3
  • Fortran Compiler g77 or gfortran >= 3.3
  • Bash shell
  • Subversion client 'svn'

1. First checkout the scripts directory from subversion repository to a temporary directory.

cd $HOME
mkdir tmp
cd tmp
svn co https://coolfluidsrv.vki.ac.be/svn/coolfluid/Scripts/

2. Run it from the temporary directory

cd $HOME/tmp
./Scripts/install-coolfluid-deps.pl

This will take a lot of time but it will install all necessary dependencies locally in your $HOME account. But once you do this, you will not need to repeat it again.

Notes on using this script

Note 1: You may get some help by doing:

cd $HOME/tmp
./Scripts/install-coolfluid-deps.pl --help

Note 2: This script installs the needed software in a directory in your home, not on the system. So you may use it on machines that you do not have administrator access. You may change the directory destination (check help).

Nevertheless, you must add this directory to your working environment by exporting the environmental variables PATH and LD_LIBRARY_PATH in your login scripts.

For example, for BASH logins, place in your .bash_profile file the following lines:

export ARCH=$(uname -m)
export LD_LIBRARY_PATH=$HOME/local/$ARCH/lib:$LD_LIBRARY_PATH
export PATH=$HOME/local/$ARCH/bin:$PATH

The option --envars of the script does that.

Note 3: After the installation you may delete the tmp directory to release some disk space.