rw-by-pid-record: 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/libexec/perf-core/scripts/perl/bin/rw-by-pid-record - from package: perf

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

On Debian possible default full paths are:

/usr/share/perf_3.16-core/scripts/perl/bin/rw-by-pid-record - from package: linux-tools-3.16

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