pfmtopam: 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/pfmtopam - from package: netpbm-progs

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