Dear @rick,
first of all, if you are only using linux for FLUKA, and use Windows 10 for otherwise, please take a look how to run, FLUKA with WSL on Windows 10 on fluka.cern.
The included script automatically configures your system, and you need to install FLUKA only.
But if you still plan to use Ubuntu 18.04, you can follow these steps:
- To install gfortran 8 use the following command:
sudo apt install gfortran-8
- To configure gfortran 8 as the main fortran compiler run the two command below:
update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-7 10
update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-8 20
- Install the gfortran 9 (.tgz) version of FLUKA, following the guide from here.
Unfortunately, the gfortran 9 (.deb) version is not compatible with Ubuntu 18.04.
I hope this helps getting FLUKA set up.
Cheers,
David