r.li.patchdensity: 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.li.patchdensity - 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.li.patchdensity - from package: grass-core

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