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

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

On Debian possible default full paths are:

/usr/bin/pmsocks - from package: pcp

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