g_potential: 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_potential - from package: gromacs

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

On Debian possible default full paths are:

/usr/bin/g_potential - from package: gromacs

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