mpic++.openmpi: 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/mpic++.openmpi - from package: libopenmpi-dev

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