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

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

On Debian possible default full paths are:

/usr/bin/pnmpaste - from package: netpbm

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