Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: david [...] landgren.net
Cc:
AdminCc:

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



Subject: Patch for the README (FreeBSD information
I had to diddle around a bit in order to get BerkeleyDB to install correctly on FreeBSD, so I thought I'd send you some notes I made which might help people in the future. Looking at the RT queue, this may help resolve #13348. Regards, David
Subject: README.BDB.patch
--- README.orig Thu Feb 16 12:07:59 2006 +++ README Thu Feb 16 12:23:10 2006 @@ -60,6 +60,8 @@ the Solaris Notes or HP-UX Notes sections below. If you are running Linux please read the Linux Notes section before proceeding. + If you are running FreeBSD read the FreeBSD Notes section + below. Step 2 : Edit the file config.in to suit you local installation. Instructions are given in the file. @@ -563,6 +565,29 @@ 3: Build and install the Berkeley DB distribution as usual. +FreeBSD Notes +------------- + +On FreeBSD 4.x through 6.x, the default db.h is for version 1. The +build will fail with an error similar to: + +BerkeleyDB.xs:74: #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4 + +Later versions of Berkeley DB are usually installed from ports. +The available versions can be found by running a find(1) command: + + % find /usr/local/include -name 'db.h' + /usr/local/include/db3/db.h + /usr/local/include/db4/db.h + /usr/local/include/db41/db.h + /usr/local/include/db42/db.h + /usr/local/include/db43/db.h + +The desired version of the library must be specified on the command line or +via the config.in file. Make sure both values point to the same version: + + INCLUDE = /usr/local/include/db43 + LIB = /usr/local/lib/db43 FEEDBACK --------
On Thu Feb 16 06:36:51 2006, DLAND wrote: Show quoted text
> I had to diddle around a bit in order to get BerkeleyDB to install > correctly on FreeBSD, so I thought I'd send you some notes I made
which Show quoted text
> might help people in the future. > > Looking at the RT queue, this may help resolve #13348. > > Regards, > David
Thanks David - patch applied to my development copy. Paul