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

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

On Debian possible default full paths are:

/usr/bin/i686-w64-mingw32-gprof - from package: binutils-mingw-w64-i686

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