Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

Report information
The Basics
Id: 70277
Status: open
Priority: 0/
Queue: BerkeleyDB

People
Owner: Nobody in particular
Requestors: justincase [...] yopmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: hard to install via cpan tools because bdb 1.x library is being used
I have run into the same problem as the majority of the cpantester failures. The wrong db.h include file is being found and used. It is common for systems to have both 1.x and 4.x versions of BDB installed, where the 1.x version is installed in the standard location (/usr/include) and the 4.x version is installed in a version specific directory ({/{usr,opt}/include/db46). Please make it easier for users to use cpan tools to install this module without having to manually specify where to look using environment variables. One possibility is to have a list of possible directories and use Devel::CheckLib to find the right one.
From: justincase [...] yopmail.com
On Mon Aug 15 04:25:10 2011, justincase wrote: Show quoted text
> One possibility is to have a list of possible directories and > use Devel::CheckLib to find the right one.
Another possibility is to create an Alien-BerkeleyDB distribution that either tries to find the installed library or downloads and installs its own version if that fails. See Alien::SDL for an example.
From: blue [...] thisisnotmyrealemail.com
On Mon Aug 15 04:25:10 2011, justincase wrote: Show quoted text
> Please make it easier for users to use cpan tools to install this module > without having to manually specify where to look using environment > variables. One possibility is to have a list of possible directories and > use Devel::CheckLib to find the right one.
Here's a couple of distributions that use it to probe for library locations: http://cpansearch.perl.org/src/SHLOMIF/XML-LibXML-2.0014/Makefile.PL http://cpansearch.perl.org/src/TONYC/Imager-0.94/lib/Imager/Probe.pm