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