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

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