luac5.2: 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/luac5.2 - from package: lua5.2

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