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

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