hepdb-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/hepdb-gfortran - from package: cernlib-packlib-gfortran

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