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

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