
- #MAC SUDO INSTALL GFORTRAN HOW TO#
- #MAC SUDO INSTALL GFORTRAN INSTALL#
- #MAC SUDO INSTALL GFORTRAN FULL#
- #MAC SUDO INSTALL GFORTRAN CODE#
The commands for setting environment variables differ for different shells.
#MAC SUDO INSTALL GFORTRAN FULL#
This avoids typing the full path every time executing FLUKA scripts. It is still convenient to add the directory where the FLUKA executables and post-processing utilities are located ( /pathtofluka/ bin) to the PATH environment variable. For users without superuser rights, FLUKA can be installed locally in their home directory.įor more information concerning the make command type: make help Environment variablesĪs mentioned above, no environmental variables are needed to compile and run FLUKA. In this case, superuser rights are needed to execute the FLUKA installation.
#MAC SUDO INSTALL GFORTRAN INSTALL#
For local software installations on Linux machines, it is good practice to install the packages under the /usr/local tree.
#MAC SUDO INSTALL GFORTRAN CODE#
This command will install the compiled code in the directory DESTDIR, here /usr/local/fluka. This option is particularly recommended when compiling FLUKA from the source. Use up to the maximum cores of your machine. This will use 8 CPU cores in parallel for compilation.

Optionally one can specify additional parameters to make. This creates the FLUKA libraries in the directory /pathtoflu ka/ lib and the executables ( fluka and flukadpm) and the auxiliary programs in the directory /pathtoflu ka/ bin. In case the package including the FLUKA source is used, the compilation is done by typing: cd /pathtofluka/ This creates the default FLUKA executables ( fluka and flukadpm) and the auxiliary programs in the directory /pathtofluk a/ bin. The compiler version on your system can be tested by typing: gfortran -versionįLUKA can then be installed by typing: cd /pathtofluka/src/ tgz package is installed on the system (see here if you are unsure which compiler is compatible with the downloaded package). Verify that a gfortran version compatible with the downloaded FLUKA. Installing pre-compiled FLUKA libraries ( ) From here onwards this new directory is referred to as /pathtofluka/. This will create a new directory containing the FLUKA distribution.

tgz package needs to be uncompressed in a terminal using the following command: tar -xvf for installing gfortran10 type:Īs a first step, the downloaded.

No environment variables are needed to compile and run FLUKA. Where indicates as above the FLUKA release version ( e.g. The package containing the FLUKA source code is named: Where indicates the FLUKA release version, refers to Linux or macOS (Darwin), and indicates the version of the gfortran compiler ( e.g. Packages containing the precompiled libraries are named: In the latter case, FLUKA must be compiled by the user. tgz files contain either precompiled libraries or the source code.
#MAC SUDO INSTALL GFORTRAN HOW TO#
These instructions explain how to install FLUKA on Linux or macOS using the.
