In this case, superuser rights are needed to execute the FLUKA installation.
LINUX INSTALL GFORTRAN INSTALL
For local software installations on Linux machines, it is good practice to install the packages under the /usr/local tree.
LINUX 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. Install Apple's Command Line Developer Tools.On macOS, you can use the recommended package manager MacPorts: On GNU/Linux, use the package manager of your Linux distribution to install gfortran. PrerequisitesĪ recent gcc/gfortran compiler is needed (corresponding to the downloaded package). However, for convenience, it is still recommended to set some environment variables as explained at the end of the installation instructions. 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.
LINUX INSTALL GFORTRAN HOW TO
Perhaps someone can assist me make gfortran-7 as the alternative to gfortran-5.These instructions explain how to install FLUKA on Linux or macOS using the. I am now trying to figure out how to make gfortran-7 the default, currently -version shows gfortran-5. Perhaps because of gcc-7, gofrtran-7 has installed. I managed to install gfortran-7 with sudo apt-get install gfortran Hello again, my apologies to those who have spent time looking at my problem. Installing gfortran from gcc source, which provides for specifying languages to be installed gives an error (sfp-exceptions.c) at the make stage.ĭoes anyone know how I can have gfortran-7 installed. I have successfully installed gcc-7 with sudo sed -i 's/xenial/zesty/g' /etc//ubuntu-toolchain-r*.list