fortran compiler error on macOS v10.13

Asked by Kong Weijun on 2018-10-31

Hi,
I am using macOS system v10.13 and met a problem about fortran . From other questions
 I learn that gcc8 is not supported yet so I switched to gcc7 and gcc5(installed with homebrew) , I am following the tutorial
,in running "output MY_FIRST_MG5_RUN" I got an error like the follows:

Error detected in "output MY_FIRST_MG5_RUN"
write debug file MG5_debug
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
MadGraph5Error : No Fortran Compiler detected! Please install one

in shell I test the following command:

which fortran-5
/usr/local/bin/gfortran-5

what is the problem with my system?
Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2018-11-11
Last query:
2018-11-11
Last reply:
2018-11-10

Hi,

gfortran-5 is not a standard name for the compiler and we did not check for that executable

You can either add a symbolic link such that "which gfortran" works (and point to gfortran-5)
or you can set the path "/usr/local/bin/gfortran-5" inside the file input/mg5_configuration at the line specifying which compiler to use.

Cheers,

Olivier

Kong Weijun (kongweijun) said : #2

Thanks for your help.
My problem was due to my gcc package was not complete。I have reinstall the correct gcc package.