g.pnmcomp: 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.pnmcomp - 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.pnmcomp - from package: grass-core

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