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

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