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

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