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

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