mpicc.lam: 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/mpicc.lam - from package: lam4-dev

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