Missing gfortran - CentOS 8

Hello David,

Thanks always for your feedback …
I did install Pillow as a user , i.e. pip3 install Pillow --user.
But the “chck_luka.py” produce a Warning and Error!
…Error:
{flukadir}/bin/lfluka -o testfluka doesn’t compile/link properly <<<<<

	**Please ensure you have the correct version of fluka with the appropriate compiler**

I installed Fluka from “fluka-4-1.1.Linux-gfor9.x86_64.rpm”.

Thanks

Overall output:

$ /home/here/zzz-bkup02/check_fluka.py

Checking python
Version: 3.6-8 ok

Checking python tkinter module
tkinter found

Checking tk library
Tk Version= 8.6 ok

Checking python imaging
python-imaging-tk installed

Checking gnuplot
gnuplot 5.2.4 ok

Checking memory
Ram: 3825416 kb ok
Swap: 4157436 kb ok

Checking CPU
CPUs: 4 ok
Clock: 2394.45 MHz ok
Arch: x86_64

Checking X11
X11 dimension: 2333x992 ok
X11 depth: 24 ok

Checking flair
flair not in standard directory
flair directory: /home/here/flair
flair version: 3.1-8

Checking flair-geoviewer
flair version ok (same or higher than 3.0-7)
flair-geoviewer version 3.1-8
flair and geoviewer version match

Checking gfortran
============================== WARNING ==============================
gfortran fortran not found

Please install the latest gfortran version
Fedora, RedHast, Scientific Linux, CentOS, Suse:
dnf -y install gfortran
Ubuntu:
apt install gfortran
MacOS (Macport recommended):
port install gcc9

======================================================================

Checking FLUKA
FLUKA directory: /usr/local/fluka
FLUKA Version= 4-1.1
/usr/local/fluka/bin/fluka exists
/usr/local/fluka/bin utilities exists ok
============================== ERROR ==============================
{flukadir}/bin/lfluka -o testfluka doesn’t compile/link properly

	Please ensure you have the correct version of fluka with the appropriate compiler

======================================================================
[fernando@acnlinhe fluka-test3]$ /home/here/zzz-bkup02/check_fluka.py

Checking python
Version: 3.6-8 ok

Checking python tkinter module
tkinter found

Checking tk library
Tk Version= 8.6 ok

Checking python imaging
python-imaging-tk installed

Checking gnuplot
gnuplot 5.2.4 ok

Checking memory
Ram: 3825416 kb ok
Swap: 4157436 kb ok

Checking CPU
CPUs: 4 ok
Clock: 2394.45 MHz ok
Arch: x86_64

Checking X11
X11 dimension: 2333x992 ok
X11 depth: 24 ok

Checking flair
flair not in standard directory
flair directory: /home/here/flair
flair version: 3.1-8

Checking flair-geoviewer
flair version ok (same or higher than 3.0-7)
flair-geoviewer version 3.1-8
flair and geoviewer version match

Checking gfortran
============================== WARNING ==============================
gfortran fortran not found

Please install the latest gfortran version
Fedora, RedHast, Scientific Linux, CentOS, Suse:
dnf -y install gfortran
Ubuntu:
apt install gfortran
MacOS (Macport recommended):
port install gcc9

======================================================================

Checking FLUKA
FLUKA directory: /usr/local/fluka
FLUKA Version= 4-1.1
/usr/local/fluka/bin/fluka exists
/usr/local/fluka/bin utilities exists ok
============================== ERROR ==============================
{flukadir}/bin/lfluka -o testfluka doesn’t compile/link properly

	Please ensure you have the correct version of fluka with the appropriate compiler

======================================================================

Thanks
Arthur

Dear Arthur,

this time the issue is that the script can’t find the gfortran compiler on your system.

for the FLUKA package you installed, you will need gfortran 9. To install this you need the following commands:

sudo yum install centos-release-scl
sudo yum install devtoolset-9

Then you need to activate it with

scl enable devtoolset-9 bash

This command can be added to your .bashrc to run it every time you log in.

Cheers,
David

Thanks David,

Yes, my gfortan was the problem …
Some reason it was my oversight. I installed “gcc-gfortran” and with that … all the test for the python script passed …

Checking python Version: 3.6-8 ok

Checking python tkinter module
tkinter found

Checking tk library
Tk Version= 8.6 ok

Checking python imaging
python-imaging-tk installed

Checking gnuplot
gnuplot 5.2.4 ok

Checking memory
Ram: 3825416 kb ok
Swap: 4157436 kb ok

Checking CPU
CPUs: 4 ok
Clock: 2394.45 MHz ok
Arch: x86_64

Checking X11
X11 dimension: 2333x992 ok
X11 depth: 24 ok

Checking flair
flair not in standard directory
flair directory: /home/here/flair
flair version: 3.1-8

Checking flair-geoviewer
flair version ok (same or higher than 3.0-7)
flair-geoviewer version 3.1-8
flair and geoviewer version match

Checking gfortran
gfortran version 8.3.1
gfortran function properly

Checking FLUKA
FLUKA directory: /usr/local/fluka
FLUKA Version= 4-1.1
/usr/local/fluka/bin/fluka exists
/usr/local/fluka/bin utilities exists ok
{flukadir}/bin/lfluka -o testfluka compiles ok
fluka runs ok

                    Congratulations all tests passed 

Thanks so much
Cheers
Arthur