printafm: 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/printafm - from package: ghostscript

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

On Debian possible default full paths are:

/usr/bin/printafm - from package: ghostscript

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