g_wham: 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/bin/g_wham - from package: gromacs

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/g_wham - from package: gromacs

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