up <[EMAIL PROTECTED]> writes:

> This is perl, version 5.005_03 built for i386-freebsd
>
> Not sure which DB module is installed...perl -V doesn't say...I presume
> there's an easy way to tell?

Not super easy, but not too hard.  Sometimes you can tell just by
running:

  file ~/.spamassassin/bayes_toks*

for me...

  Berkeley DB (Hash, version 5, native byte-order) -> DB_File
  GNU dbm 1.x or ndbm database, little endian      -> GDBM (single file)
                                                      or NDBM (.dir and .pag)
  "MPEG" and "data"                                -> SDBM (.dir and .pag)

The other way is to see which DB database gets loaded using a system
trace program like strace or truss.  Something like:

  strace -eopen perl -w spamassassin < testfile 2>/tmp/debug
  egrep DB /tmp/debug

and look for a successful open like:

  open("/usr/lib/perl/5.6.1/DB_File.pm", O_RDONLY|O_LARGEFILE) = 6

Or, you can just see which ones you have installed.  In SpamAssassin
2.55, the order of preferences is DB_File first, then GDBM_File,
NDBM_File, and SDBM_File last.

I assume you're not using a 2.60 release candidate?

Daniel


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to