kcachegrind: 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/kcachegrind - from package: kdesdk

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

On Debian possible default full paths are:

/usr/bin/kcachegrind - from package: kcachegrind

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