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

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