foomatic-printjob: 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/foomatic-printjob - from package: foomatic

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

On Debian possible default full paths are:

/usr/bin/foomatic-printjob - from package: foomatic-db-engine

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