shptreevis: 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/shptreevis - from package: mapserver

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

On Debian possible default full paths are:

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

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