sxpm: 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/sxpm - from package: libXpm-devel

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

On Debian possible default full paths are:

/usr/bin/sxpm - from package: xpmutils

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