tap2junit: 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 Debian possible default full paths are:

/usr/bin/tap2junit - from package: libtap-formatter-junit-perl

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