shapeindex: 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/shapeindex - from package: mapnik-utils

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