Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Dec 2006 19:36:53 GMT
From:      Mark <admin@asarian-host.net>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: pb installing P5-BerkeleyDB
Message-ID:  <200612071936.kB7Japqw003199@asarian-host.net>
In-Reply-To: <200612071352562.SM00292@TX2.Go2France.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org 
> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Len Conrad
> Sent: donderdag 7 december 2006 14:09
> To: freebsd-questions@freebsd.org
> Subject: pb installing P5-BerkeleyDB
> 
>
> %cd /usr/ports/databases/p5-BerkeleyDB
> %make WITH_BDB_VER=41


You seem to have a pretty old port system. Aren't they on
p5-BerkeleyDB-0.31 yet? And the latest BerkeleyDB version is 4.5.20, I
believe.

> ===> p5-BerkeleyDB-0.25 depends on shared library: db41.1 - not found

I usually compile a new BerkeleyDB (the Perl module) directly from CPAN.
You do the whole "perl Makefile.PL" thingy, and then you edit "config.in"
to tell it about the location of your BerkeleyDB (the database). Otherwise
it cannot find the new database. Edit "config.in" like so:

INCLUDE = /usr/local/BerkeleyDB.4.1/include
LIB = /usr/local/BerkeleyDB.4.1/lib
DBNAME = -ldb-4.1

(change the paths according to your system's locations, of course!)

P.S. If you installed the database via ports, you wouldn't get a location
like: "/usr/local/BerkeleyDB.4.1/lib" (if I recall correctly, you get that
from running ./configure from a manual installation); but something like:
"/usr/local/lib/db41/". Anyway, as long as you know where everything
resides, the edit of "config.in" should do what you want.

- Mark




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612071936.kB7Japqw003199>