cpan module install woes - UTF-8 problem?



Not sure if this is the correct group. Please let me know if there's a
more applicable one.

I'm trying to install amavisd-new, spamassassin, and clamav on my ubuntu
7.10 system. One of amavisd-new's prerequisites is BerkeleyDB and there's
also an optional Mail::ClamAV that I want to install. All other modules
installed fine.

Not being that knowledgeable with perl, I usually install modules at the
commandline by:

$ sudo cpan BerkeleyDB

type commands. Trouble is for those 2 modules mentioned above, and also
some others required for spamassassin, I keep getting many errors[1].

I have read that there may be some problems with perl modules if the
environment is UTF-8. Mine is. I read that a solution may be to unset
LANG. Tried that with both:

$ env LANG= sudo cpan BerkeleyDB

and

$ LANG=
$ sudo cpan BerkeleyDB

to no avail. Any ideas? Please?


[1] Some of the output for BDB below. I can provide full if necessary.
---------------------------------------------
CPAN: Storable loaded ok
Going to read /var/cache/cpan/Metadata
Database was generated on Tue, 30 Oct 2007 12:36:36 GMT
Running install for module BerkeleyDB
Running make for P/PM/PMQS/BerkeleyDB-0.32.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for
/var/cache/cpan/sources/authors/id/P/PM/PMQS/BerkeleyDB-0.32.tar.gz ok
Scanning cache /var/cache/cpan/build for sizes BerkeleyDB-0.32/
BerkeleyDB-0.32/constants.
....
[snipped]
....
BerkeleyDB-0.32/Makefile.PL
Removing previously used /var/cache/cpan/build/BerkeleyDB-0.32

CPAN.pm: Going to build P/PM/PMQS/BerkeleyDB-0.32.tar.gz

WARNING: LICENSE is not a known parameter.
Parsing config.in...
Looks Good.
Checking if your kit is complete...
Looks good
'LICENSE' is not a known MakeMaker parameter name.
Note (probably harmless): No library found for -ldb
Writing Makefile for BerkeleyDB
cp BerkeleyDB.pm blib/lib/BerkeleyDB.pm
AutoSplitting blib/lib/BerkeleyDB.pm (blib/lib/auto/BerkeleyDB)
cp BerkeleyDB/Hash.pm blib/lib/BerkeleyDB/Hash.pm
cp BerkeleyDB.pod blib/lib/BerkeleyDB.pod
cp BerkeleyDB/Btree.pm blib/lib/BerkeleyDB/Btree.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -noprototypes -typemap
/usr/share/perl/5.8/ExtUtils/typemap -typemap typemap BerkeleyDB.xs >
BerkeleyDB.xsc && mv BerkeleyDB.xsc BerkeleyDB.c cc -c
-I/usr/local/BerkeleyDB/include -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"0.32\" -DXS_VERSION=\"0.32\" -fPIC "-I/usr/lib/perl/5.8/CORE"
BerkeleyDB.c BerkeleyDB.xs:68:16: error: db.h: No such file or directory
BerkeleyDB.xs:76:2: error: #error db.h is not for Berkeley DB at all.
BerkeleyDB.xs:211: error: expected specifier-qualifier-list before
'DB_ENV' BerkeleyDB.xs:222: error: expected specifier-qualifier-list
before 'DBTYPE' BerkeleyDB.xs:264: error: expected
specifier-qualifier-list before 'DBTYPE' BerkeleyDB.xs:306: error:
expected specifier-qualifier-list before 'DB_TXN' BerkeleyDB.xs:342:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DBTKEY'
.... [snip]
....
BerkeleyDB.xs:4517: error: 'my_cxt_t' has no member named 'x_zero'
BerkeleyDB.xs:4518: error: 'my_cxt_t' has no member named 'x_empty'
BerkeleyDB.xs:4518: error: 'db_recno_t' undeclared (first use in this
function) BerkeleyDB.xs:4519: error: 'my_cxt_t' has no member named
'x_empty' make: *** [BerkeleyDB.o] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
------------------------------------------------

--
Troy Piggins
using Xnews from work while getting new home connected
.



Relevant Pages

  • RHEL and third party apps
    ... I recently installed MailScanner, ClamAV, and SpamAssassin on our ... The SpamAssassin RPM I installed was RH's RPM and did ... a really kick-butt mail server. ... Will I find myself unable to install ...
    (RedHat)
  • Re: Spamassassin Default Install
    ... getting SpamAssassin to work largely depends on your email ... (I do this with a spam training ... spam and ham, of course, and in addition old_ham and old_spam. ... strip SA's markup and install its own. ...
    (Fedora)
  • Re: spam filter easy install
    ... fresh etch install? ... I have again tried spamassassin, ... error messages, but only managed to substitute different errors... ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Vipuls Razor and SpamAssassin?
    ... There is no need to mess with MailScanner. ... SpamAssassin site you can find rpm's for RH 9. ... to install SpamAssassin from CPAN. ... then scan all your emails with F-Prot and ClamAV. ...
    (RedHat)
  • Re: Amavis-new and Spamassassin Training
    ... > When I installed spamassassin, bayes was not enabled by default. ... version to install with amavis-new, cause none of the stuff documented ... from the documentation whether it is safe to mix this subset ...
    (alt.os.linux.suse)