g_dih: 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_dih - from package: gromacs

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