bogolexer-bdb: 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 Debian possible default full paths are:

/usr/bin/bogolexer-bdb - from package: bogofilter-bdb

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