On 2.4.2010 11:30, Cecil Westerhof wrote:
> I just updated my SpamAssassin to 3.3.1. Maybe not the correct place to
> mention it, but I find the
>     perl -MCPAN -e shell
> not working very well. There was a message that the Perl version 5.8.6
> was outdated, but I only saw it, because I was watching the output. With
> the very big stream of output, it was something that is easily
> overlooked. I had also to install a lot of modules by hand.
>
> After the update to Perl 5.10.1 I get the message:
>     Terminal does not support AddHistory.
> and cursor up for a previous given command does not work anymore. Very
> annoying. :-{
>
> But those are things that are annoying, but not more. But when I now
> use:
>     sa-learn --dump magic
> I get:
>     ERROR: Bayes dump returned an error, please re-run with -D for
more information
> so I used:
>     sa-learn -D --dump magic
> which ends with:
>     apr  2 10:02:19.394 [7291] dbg: plugin:
Mail::SpamAssassin::Plugin::Bayes=HASH(0x8c63370) implements
'learner_is_scan_available', priority 0
>     apr  2 10:02:19.396 [7291] dbg: bayes: DB_File module not
installed, cannot use bayes
>     apr  2 10:02:19.398 [7291] dbg: config: score set 1 chosen.
>     apr  2 10:02:19.399 [7291] dbg: sa-learn: spamtest initialized
>     apr  2 10:02:19.403 [7291] dbg: plugin:
Mail::SpamAssassin::Plugin::Bayes=HASH(0x8c63370) implements
'learner_dump_database', priority 0
>     apr  2 10:02:19.405 [7291] dbg: bayes: DB_File module not
installed, cannot use bayes
>     apr  2 10:02:19.407 [7291] dbg: plugin:
Mail::SpamAssassin::Plugin::Bayes=HASH(0x8c63370) implements
'learner_close', priority 0
>     ERROR: Bayes dump returned an error, please re-run with -D for
more information
>
> So I would think my problem is that I need to install DB_File. But when
> I do:
>     install DB_File
> I get:
>     Parsing config.in...
>     Looks Good.
>     Checking if your kit is complete...
>     Looks good
>     Writing Makefile for DB_File
>     Could not read '/root/.cpan/build/DB_File-1.820-0nX4DL/META.yml'.
Falling back to other methods to determine prerequisites
>     cp DB_File.pm blib/lib/DB_File.pm
>     AutoSplitting blib/lib/DB_File.pm (blib/lib/auto/DB_File)
>     cc -c  -I/usr/local/BerkeleyDB/include -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.820\" -DXS_VERSION=\"1.82\" -fPIC
"-I/usr/local/lib/perl5/5.10.1/i686-linux/CORE"  -D_NOT_CORE
-DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t   version.c
>     version.c:30:16: db.h: No such file or directory
>     make: *** [version.o] Error 1
>       PMQS/DB_File-1.820.tar.gz
>       /usr/bin/make -- NOT OK
>
> What is happening here?
>
> And what about the warnings avout 'score set for non-existent rule', is
> this something to worry about?
>

You instanlled perl from cpan, and propably removed the earlier, package
managed version of perl?

Now you need to install ALL perl packages that are missing and that were
installed by your OS package manager earlier.

DB_File propably needs some kind of "dev"-package for Berkeley DB (it
needs db.h and the libraries).

What comes to SpamAssassin, you probably need to look out all
prerequisities, and reinstall them thru CPAN, if not with your package
manager.

In CPAN, you might want to try at least

   install Bundle::CPAN

and if that does not install YAML and LWPm then

   install YAML
   install LWP

It usually is bad practise to install perl thru CPAN and bypassing own
package management. You may now be dependent on CPAN on all your Perl
stuff. I have been there, done that. Now trying to stick with distro
Perl, and upgrade distro, if Perl gets old.

-- 
http://www.iki.fi/jarif/

Q:      Why do firemen wear red suspenders?
A:      To conform with departmental regulations concerning uniform dress.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to