[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Installation Problem



beno wrote:
> LI Xin wrote:
>> beno wrote:
>>  
>>> Hi;
>>> I'm trying to build the latest distro of openldap on a FreeBSD 6.1 box.
>>> Even with the standard config with no flags I get the error that the
>>> distro can't find the Berekely DB:
>>>
>>> checking for db.h... yes
>>> checking for Berkeley DB major version... 1
>>> checking for Berkeley DB minor version... 0
>>> checking for Berkeley DB link (-ldb1)... no
>>> checking for Berkeley DB link (-ldb-1)... no
>>> checking for Berkeley DB link (default)... yes
>>> checking for Berkeley DB version match... yes
>>> checking for Berkeley DB thread support... no
>>> checking Berkeley DB version for BDB/HDB backends... no
>>> configure: error: BDB/HDB: BerkeleyDB version incompatible
>>>
>>> I had just reinstalled all my ports to BSD. But I went over to sleepycat
>>> and d/l'd the latest and ran the ../dist/configure && make && make
>>> install from the build_unix dir without a hitch (not the Java version,
>>> just the plain vanilla). But I still get the same error from openldap.
>>> What am I missing?
>>>     
>>
>> It looks that your BerkeleyDB installation has not used the expected
>> layout, and configure script has detected the bundled bdb version (1.85).
>>   
> How did that happen, and more importantly, how do I avoid that
> happening? I didn't throw any flags at Berkely at all!
> 
> cd build_unix
> ../dist/configure
> make
> make install
> 
> How did you determine version 1.85?

You have to explicitly specify where Berkeley DB bits are located.  For
instance, if you build the OpenLDAP server from the FreeBSD ports
collection, then you will have something like the following in your
environment:

LDFLAGS=" -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib"
CPPFLAGS="-I/usr/local/include/db43   -I/usr/local/include"
LDFLAGS=" -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib"

These information is important for the OpenLDAP configure script to
figoure out the expected BDB libraries/headers, etc.

Cheers,
-- 
Xin LI <delphij@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!

Attachment: signature.asc
Description: OpenPGP digital signature