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

RE: Configure OpenLDAP 2.2.19 with Berkeley 4.3.21 on Solaris




On Tue, 14 Dec 2004, Reinhard Nappert wrote:


My mistake, I did add /usr/local/BerkeleyDB/lib (instead of /usr/local/BerkeleyDB).

Just re-ran the config command with
LDFLAGS="-L/usr/local/BerkeleyDB/lib -R/usr/local/BerkeleyDB/lib"

But, I still get the same error.

Thanks for this fast reply.

Did you check config.log? This should be the first thing to check...

-Igor

-Reinhard

-----Original Message-----
From: Igor Brezac [mailto:igor@ipass.net]
Sent: Tuesday, December 14, 2004 2:40 PM
To: Reinhard Nappert
Cc: OpenLDAP-software@OpenLDAP.org
Subject: Re: Configure OpenLDAP 2.2.19 with Berkeley 4.3.21 on Solaris


On Tue, 14 Dec 2004, Reinhard Nappert wrote:

Hi,

I built Berkeley 4.3.21 and installed it in /usr/local/BerkeleyDB. I
added "/usr/local/BerkeleyDB" to my LD_LIBRARY_PATH environment.

You should have added /usr/local/BerkeleyDB/lib.

Now, I want to configure OpenLDAP.

I use the following command:

env CPPFLAGS=-I/usr/local/BerkeleyDB/include \
     LDFLAGS=-L/usr/local/BerkeleyDB/lib \

Try LDFLAGS="-L/usr/local/BerkeleyDB/lib -R/usr/local/BerkeleyDB/lib"

./configure --prefix=/opt/openldap --with-ldbm-api=berkeley

It finds the db.h file and is not able to do the Berkeley DB link. The

following is the output of configure:

checking for db.h... yes
checking for Berkeley DB link (default)... no checking for Berkeley DB

link (-ldb43)... no checking for Berkeley DB link (-ldb-43)... no
checking for Berkeley DB link (-ldb-4.3)... no checking for Berkeley
DB link (-ldb-4-3)... no checking for Berkeley DB link (-ldb42)... no
checking for Berkeley DB link (-ldb-42)... no checking for Berkeley DB

link (-ldb-4.2)... no checking for Berkeley DB link (-ldb-4-2)... no
checking for Berkeley DB link (-ldb-4)... no checking for Berkeley DB
link (-ldb4)... no checking for Berkeley DB link (-ldb)... no checking

for Berkeley DB link (-ldb41)... no checking for Berkeley DB link
(-ldb-41)... no checking for Berkeley DB link (-ldb-4.1)... no
checking for Berkeley DB link (-ldb-4-1)... no checking for Berkeley
DB link (-ldb3)... no checking for Berkeley DB link (-ldb-3)... no
checking for Berkeley DB link (-ldb2)... no checking for Berkeley DB
link (-ldb-2)... no checking for Berkeley DB link (-ldb1)... no
checking for Berkeley DB link (-ldb-1)... no
configure: error: BDB: BerkeleyDB not available

I have seen many posts with similar messages, but none of the
suggestions did solve my issue.
Any help is very much appreciated.

Check config.log for more clues.

--
Igor





-- Igor