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

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

On Debian possible default full paths are:

/usr/bin/pmgenmap - from package: pcp

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