Re: cpan module install woes - UTF-8 problem?




Quoth Troy Piggins <usenet-0710@xxxxxxxxx>:
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.

This is not usually an issue if you are using 5.8.1 or above, and in any
case does not appear to be the problem here.

[1] Some of the output for BDB below. I can provide full if necessary.
<snippety>
/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

Here is your problem: you don't have db.h, or, at least, not where perl
is looking for it. Have you installed the appropriate -dev db package?

Since you seem to be using Debian, it may be easier to install modules
through the package manager. This will handle external dependancies like
this for you.

Ben

.



Relevant Pages

  • Re: Getting mods to install?
    ... >> I'm trying to install Spamassassin on our RedHat ES2, ... >> perl Makefile, it says I need to install some mods. ... SpamAssassin can be downloaded from CPAN. ...
    (comp.lang.perl.misc)
  • Re: swith old version to the new version
    ... *** Error code 1 ... > I want to install Spamasssasin so it need perl and in my server running ... attempting to install Spamassassin? ...
    (freebsd-questions)
  • 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: spam mail
    ... You mean `perl', or `Perl'. ... > Also, although you can retrieve the SpamAssassin install as a ZIP file, ... > MSWindows isn't one of the systems listed as supported, ... > MSWindows install instructions). ...
    (comp.os.linux.security)
  • 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)