ysearch-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/ysearch-gfortran - from package: patchy-gfortran

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