r.sun: 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/r.sun - 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/r.sun - from package: grass-core

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