y2racc: 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 Debian possible default full paths are:

/usr/bin/y2racc - from package: racc

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