pto2mk: 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/pto2mk - from package: hugin-tools

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