g_rotmat: 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_rotmat - from package: gromacs

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

On Debian possible default full paths are:

/usr/bin/g_rotmat - from package: gromacs

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