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

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