For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > October 2007 > Re: cpan module install woes - UTF-8 problem?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: cpan module install woes - UTF-8 problem?
Ben Morrow

2007-10-31, 4:21 am


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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com