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

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