Re: cpan module install woes - UTF-8 problem?
- From: Troy Piggins <usenet-0710@xxxxxxxxx>
- Date: Wed, 31 Oct 2007 17:20:27 +1000
* Ben Morrow is quoted
* & my replies are inline below :
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.
Thanks mate. I've resolved it by installing the libdb4.6-dev
package. BerkeleyDB module installs fine now with cpan, but
still having trouble with Mail::ClamAV and some others. I'll
struggle on.
This group the appropriate place to ask these sort of q's?
--
Troy Piggins | http://piggo.com/~troy
RLU#415538 ,-O (o- O
O ) //\ O
`-O V_/_ OOO
.
- Follow-Ups:
- Re: cpan module install woes - UTF-8 problem?
- From: Sherman Pendley
- Re: cpan module install woes - UTF-8 problem?
- References:
- cpan module install woes - UTF-8 problem?
- From: Troy Piggins
- Re: cpan module install woes - UTF-8 problem?
- From: Ben Morrow
- cpan module install woes - UTF-8 problem?
- Prev by Date: Re: cpan module install woes - UTF-8 problem?
- Next by Date: Re: cpan module install woes - UTF-8 problem?
- Previous by thread: Re: cpan module install woes - UTF-8 problem?
- Next by thread: Re: cpan module install woes - UTF-8 problem?
- Index(es):
Relevant Pages
|
|