g_dist: 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_dist - from package: gromacs

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

On Debian possible default full paths are:

/usr/bin/g_dist - from package: gromacs

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