You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Hans Moser <ha...@ofd-sth.niedersachsen.de> on 2006/11/27 17:23:23 UTC

SA does not use DB_File [auf Viren überprüft]

Hi!

# sa-learn -D --spam --mbox spam
[...]
[336066] dbg: bayes: DB_File module not installed, cannot use bayes
[336066] dbg: config: score set 1 chosen.
[336066] dbg: learn: initializing learner
[336066] dbg: bayes: bayes journal sync starting
[336066] dbg: bayes: bayes journal sync completed
[336066] dbg: bayes: expiry starting
[336066] dbg: bayes: DB_File module not installed, cannot use bayes
[...]
[336066] dbg: bayes: DB_File module not installed, cannot use bayes

Learned tokens from 0 message(s) (1 message(s) examined)
ERROR: the Bayes learn function returned an error, please re-run with -D 
for more information

# find / -name "DB_File*"
/opt/mail/lib/5.8.2/aix-thread-multi/auto/DB_File
/opt/mail/lib/5.8.2/aix-thread-multi/auto/DB_File/DB_File.so
/opt/mail/lib/5.8.2/aix-thread-multi/auto/DB_File/DB_File.bs
/opt/mail/lib/5.8.2/aix-thread-multi/DB_File.pm

# from /opt/mail/bin/spamassassin
my $PREFIX          = '/opt/mail';
my $DEF_RULES_DIR   = '/opt/mail/share/spamassassin';
my $LOCAL_RULES_DIR = '/etc/opt/mail/spamassassin';
my $LOCAL_STATE_DIR = '/var/opt';
use lib '/opt/mail/lib/site_perl/5.8.2';

# echo $PERL5LIB
/opt/mail/lib:/opt/mail/lib/site_perl/5.8.2:


How can I tell SA to use the installed DB_File?



Hans


Re: SA does not use DB_File [auf Viren überprüft]

Posted by Hans Moser <ha...@ofd-sth.niedersachsen.de>.
No answer yet. :-(

Hans Moser schrieb:

> # sa-learn -D --spam --mbox spam
> [...]
> [336066] dbg: bayes: DB_File module not installed, cannot use bayes
> [336066] dbg: config: score set 1 chosen.
> [336066] dbg: learn: initializing learner
> [336066] dbg: bayes: bayes journal sync starting
> [336066] dbg: bayes: bayes journal sync completed
> [336066] dbg: bayes: expiry starting
> [336066] dbg: bayes: DB_File module not installed, cannot use bayes
> [...]
> [336066] dbg: bayes: DB_File module not installed, cannot use bayes

I compiled and installed DB_File again. "make test" is all fine. SA 
still does not find it. Where is the problem?

Hans