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

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