mpiname: 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 CentOS possible default full paths are:

/usr/lib64/mvapich2-psm/bin/mpiname - from package: mvapich2-psm
/usr/lib64/mvapich2/bin/mpiname - from package: mvapich2
/usr/lib/mvapich2/bin/mpiname - from package: mvapich2

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