Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

Report information
The Basics
Id: 44070
Status: resolved
Priority: 0/
Queue: BerkeleyDB

People
Owner: Nobody in particular
Requestors: m.e [...] acm.org
Cc:
AdminCc:

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



Subject: Build fails with BerkeleyDB.xs:68:16: error: db.h: No such file or directory
Tried to install BerkeleyDB using the CPAN module but got a build error: "BerkeleyDB.xs:68:16: error: db.h: No such file or directory" and many more errors (see attachment). [root@edward ~]# perl -v This is perl, v5.10.0 built for i386-linux-thread-multi [root@edward ~]# uname -a Linux edward.sunmoonstars 2.6.27.15-170.2.24.fc10.i686 #1 SMP Wed Feb 11 23:58:12 EST 2009 i686 i686 i386 GNU/Linux
Subject: bad-cpan.txt

Message body is not shown because it is too large.

On Thu Mar 12 13:07:38 2009, m.e wrote: Show quoted text
> Tried to install BerkeleyDB using the CPAN module but got a build error: > "BerkeleyDB.xs:68:16: error: db.h: No such file or directory" and many > more errors (see attachment). > > [root@edward ~]# perl -v > > This is perl, v5.10.0 built for i386-linux-thread-multi > [root@edward ~]# uname -a > Linux edward.sunmoonstars 2.6.27.15-170.2.24.fc10.i686 #1 SMP Wed Feb 11 > 23:58:12 EST 2009 i686 i686 i386 GNU/Linux
It looks like you don't have the main prerequisite for my module, the Berkeley DB library, installed on your system. Please look at the TROUBLESHOOTING section in the README file that comes with my module. In particular look for " Missing db.h or libdb.a" Paul
On Sun Mar 15 05:44:39 2009, PMQS wrote: Show quoted text
> It looks like you don't have the main prerequisite for my module, the > Berkeley DB library, installed on your system. > > Please look at the TROUBLESHOOTING section in the README file that comes > with my module. In particular look for " Missing db.h or libdb.a" > > Paul
Yes this is basically the problem I encountered. Perhaps there is a way to catch this error and give a hint to the user what to do? Even better would be to do some rudimentary system detection and give specific hints, as on Ubuntu: sudo apt-get install libdb-dev Thanks, Robert
On Thu Oct 08 02:39:56 2009, RKRIMEN wrote: Show quoted text
> On Sun Mar 15 05:44:39 2009, PMQS wrote:
> > It looks like you don't have the main prerequisite for my module, the > > Berkeley DB library, installed on your system. > > > > Please look at the TROUBLESHOOTING section in the README file that comes > > with my module. In particular look for " Missing db.h or libdb.a" > > > > Paul
> > > Yes this is basically the problem I encountered. Perhaps there is a way > to catch this error and give a hint to the user what to do? > > Even better would be to do some rudimentary system detection and give > specific hints, as on Ubuntu: > > sudo apt-get install libdb-dev
I've looked into this a few times. Although what you suggest may work fine for Ubuntu, I need some thing that will work for *all* operating systems that my module runs on, plus the large number of versions of the berkeley db library, plus the multitude of places it gets installed. Paul