g_spatial: 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_spatial - from package: gromacs

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

On Debian possible default full paths are:

/usr/bin/g_spatial - from package: gromacs

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