Installing FLUKA on GNU/Linux (.rpm, .deb)

These instructions explain how to install FLUKA on GNU/Linux using the .rpm packages (on rpm-based systems like Fedora, CentOS, SuSE, ...) or .deb packages (on Ubuntu, Debian,...). Superuser rights are needed for the installation. Note that .rpm packages are available also for installing FLUKA from source (not available for .deb).

The packages containing precompiled libraries are called as follows:

fluka-[release].Linux-gfor[compiler-version].x86_64.rpm

and

fluka_[release].Linux-gfor[compiler-version]_amd64.deb

where [release] indicates the FLUKA release version and [compiler-version] indicates the version of the gfortran compiler. Verify that a gfortran version compatible with the downloaded FLUKA .rpm or .deb package is installed on the system (see here if you are unsure which compiler version is needed). The compiler version on your system can be obtained by typing on the command line:

gfortran --version

The .rpm package containing the source code is called as follows:

fluka-[release].Linux.src.rpm

where [release] indicates as above the FLUKA release version.

No dedicated environment variables are needed to compile and run FLUKA.

Installing FLUKA using .rpm files with libraries (fluka-...-Linux-gforXX.x86_64.rpm)

As superuser, type the following command on the command line to install FLUKA:

rpm -ivh fluka-...-gforXX.x86_64.rpm

This creates the default FLUKA executables (fluka and flukadpm) and the auxiliary programs in the directory /usr/local/fluka/bin. This directory will be automatically added to the PATH environment variable. This avoids typing the full path every time when executing FLUKA. Note that PATH is not updated in the present terminal session, but a new shell needs to be launched.

Installing FLUKA using .rpm file with source code (fluka-....-Linux.src.rpm)

Type the following command on the command line to build FLUKA:

rpmbuild --rebuild fluka-...-Linux.src.rpm

This creates a second RPM in /yourhomedirectory/rpmbuild/RPM/x86_64/ for installing FLUKA. Change into this directory and execute as superuser:

rpm -ivh fluka-...-.x86_64.rpm

The default FLUKA executables (fluka and flukadpm) and the auxiliary programs will then be installed in the directory /usr/local/fluka/bin. This directory will be automatically added to the PATH environment variable. This avoids typing the full path every time when executing FLUKA. Note that PATH is not updated in the present terminal session, but a new shell needs to be launched.

Installing FLUKA using .deb files (fluka_...-Linux-gforXX_amd64.deb)

As superuser, type the following to install FLUKA:

dpkg -i fluka-...-gforXX_amd64.deb

Like for .rpms, this creates the default FLUKA executables (fluka and flukadpm) and the auxiliary programs in the directory /usr/local/fluka/bin, which will be added automatically to the PATH environment variable. Note that PATH is not updated in the present terminal session, but a new shell needs to be launched.