g.message: 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/lib64/grass-6.4.4/bin/g.message - from package: grass

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

On Debian possible default full paths are:

/usr/lib/grass64/bin/g.message - from package: grass-core

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