imgindex: 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/lib/wims/other/bin/imgindex - from package: wims
/var/lib/wims/other/bin/imgindex - from package: wims

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