tcprewrite: 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/tcprewrite - from package: tcpreplay

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

On Debian possible default full paths are:

/usr/bin/tcprewrite - from package: tcpreplay

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