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

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