fatsrv-gfortran: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/fatsrv-gfortran - from package: cernlib-packlib-gfortran

You may install the required package with command yum install {package}
Error in other languages:
fatsrv-gfortran: bevel nie gevind nie
fatsrv-gfortran: comandă negăsită
fatsrv-gfortran: comando não encontrado
fatsrv-gfortran: commande introuvable
fatsrv-gfortran: command not found
fatsrv-gfortran: käsku ei ole
fatsrv-gfortran: không tìm thấy lệnh
fatsrv-gfortran: komanda nerasta
fatsrv-gfortran: Kommando nicht gefunden.
fatsrv-gfortran: kommandot finns inte
fatsrv-gfortran: komut yok
fatsrv-gfortran: nie znaleziono polecenia
fatsrv-gfortran: níor aimsíodh an t-ordú
fatsrv-gfortran: no se encontró la orden
fatsrv-gfortran: no s'ha trobat l'ordre
fatsrv-gfortran: opdracht niet gevonden
fatsrv-gfortran: parancs nem található
fatsrv-gfortran: perintah tidak ditemukan
fatsrv-gfortran: príkaz nenájdený
fatsrv-gfortran: příkaz nenalezen
fatsrv-gfortran: команда не найдена
fatsrv-gfortran: командата не е открита
fatsrv-gfortran: 命令找不到
fatsrv-gfortran: コマンドが見つかりません