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

Re: small problem building 2.2.17 with BerkeleyDB.4.2



Hi Alex,

I run OpenLDAP 2.1.25 with BDB 4.1 on Solaris 8.  Here's my build script:

#!/bin/sh

env CPPFLAGS="-I/usr/local/BerkeleyDB.4.1/include -I/usr/local/ssl/include -I/usr/local/include" \
LDFLAGS="-L/usr/local/BerkeleyDB.4.1/lib -L/usr/local/ssl/lib -L/usr/local/lib \
-R/usr/local/BerkeleyDB.4.1/lib -R/usr/local/ssl/lib -R/usr/local/lib" \
./configure --enable-slapd --disable-cleartext --enable-crypt --with-tls \
--with-cyrus-sasl --enable-spasswd


I am not running 2.2.x with BDB 4.2 because of a strange BDB database problem with no time to fix. But by specifying the compile include paths, link-time library search paths, and runtime library search paths, the config script should be able to find your BDB 4.2 installation.

Hope this helps,
Chuck


At 03:28 AM 10/19/2004, Alex Sharaz wrote:
Chaps,

Got a wee problem here thatI'm sure is really easy to fix.

I'm running RH ES 3.0 here which i'd like to compile openldap 2.2.17 on.

I've downloaded the BerkeleyDB.4.2 code, which has an installation directory of /usr/local/BerkeleyDB.4.2

I've added the above directory/lib to the /etc/ld.so.conf file and run ldconfig
and tried setting up an environment variable in the same command line as the configure command


LDPATH="-L/usr/local/BerkeleyDB.4.2/lib" ./configure

even tried env LDPATH .......

When configure runs however, it always says that it can't find any of the berkeley 4.2 libraries. It finds the 4.1 library in /usr/lib and then complains about the wrong database version.

I'm sure its something silly, can anyone help?

Alex
Sent using Mulberry 3.1.2

Chuck Theobald Information Technology Consultant The Robert and Beverly Lewis Center for Neuroimaging University of Oregon P: 541-346-0343 F: 541-346-0345