mpicc.mpich2: 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.mpich2 - from package: libmpich-dev

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