g_nmtraj: 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_nmtraj - from package: gromacs

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

On Debian possible default full paths are:

/usr/bin/g_nmtraj - from package: gromacs

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