text2pcap: 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/sbin/text2pcap - from package: wireshark

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

On Debian possible default full paths are:

/usr/bin/text2pcap - from package: wireshark-common

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