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

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

On Debian possible default full paths are:

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

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