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

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

On Debian possible default full paths are:

/usr/sbin/gpm - from package: gpm

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