gprof: 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/gprof - from package: binutils

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

On Debian possible default full paths are:

/usr/bin/gprof - from package: binutils-multiarch
/usr/bin/gprof - from package: binutils

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