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

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

On Debian possible default full paths are:

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

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