shptree: 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 CentOS possible default full paths are:

/usr/bin/shptree - from package: mapserver

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/shptree - from package: mapserver-bin

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