heimdal-pagsh: 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/heimdal-pagsh - from package: heimdal-workstation

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