lua-config50: 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/lua-config50 - from package: liblua50-dev

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