g_rms: 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_rms - from package: gromacs

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

On Debian possible default full paths are:

/usr/bin/g_rms - from package: gromacs

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