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

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

On Debian possible default full paths are:

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

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