g_energy: 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_energy - from package: gromacs

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

On Debian possible default full paths are:

/usr/bin/g_energy - from package: gromacs

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