irpty: 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/irpty - from package: lirc

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/irpty - from package: lirc

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