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

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