lamd: 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/lamd - from package: lam-runtime

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