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

Re: OpenLDAP 2.1.3 and Berkeley DB 4.0.14



BaTien Duong wrote:
Thank Doug:
 
I looked at openldap-2.1.3/tests/test-db/master.log and found:
 
    ../servers/slapd/slapd: error while loading share libraries libdb-4.0.so
    cannot open share object file: no file or directory
------------------------------------

Yes, this was the exact error I was getting.  I forgot to mention that I had to recompile after I made the changes.  Below is a summary of what I did to get it compiled:

1.    If Openldap is already installed, do a make clean to start over.
2.    Go into the /etc directory and add the following to your ld.so.conf
         
	/usr/local/BerkeleyDB.4.0/lib

3.  ldconfig (I didn't use any command line options, just the command itself)

4.  Set the appropriate environment variables:

	env CPPFLAGS="-I/usr/local/BerkeleyDB.4.0/include" LDFLAGS="-L/usr/local/BerkeleyDB.4.0/lib"
	./configure

5.    Follow the rest of the prompts, don't remember if it was make or make depend at this point.

I wasn't trying to do anything fancy, didn't do anything with SSL or such, figured I needed to get it to run first and figure all the other stuff out later.

Hope this helps.

Doug

___________________________________________

 
I followed your suggestion to locate the file in /data/db-4.0.14/lib that I  included as LDFLAGS in configure step.
I then added the line /data/db-4.0.14/lib to /etc/ld.so.conf. I reboot the machine and ro-do the whole thing from the beginning. I was stuck at the same place with the same error message.
 
I used ldconfig -p to find libdb-4.0.so in cache, but it is not there. So somehow redhat 7.2 does not automatically reload dynamic libraries in /data/db-4.0.14/lib or I missed something?
 
BaTien Duong
DBGROUP
----- Original Message -----
From: Doug Lytle
To: BaTien Duong
Cc: openldap-software@OpenLDAP.org
Sent: Saturday, July 27, 2002 7:27 AM
Subject: Re: OpenLDAP 2.1.3 and Berkeley DB 4.0.14

Hello,

  I think you ran into the same problem that I had, before a nice lady on the LDAP newsgroups pointed me in the correct direction.  In the openldap tests directory there is an error log kept, in my case, it was erroring on locating a library located in the Berkeley.4.0/lib directory.  Elizabeth told me to add the following to the ld.so.conf file located in the /etc directory.

/usr/local/BerkeleyDB.4.0/lib

Since the Mandrake machine is not at hand, you'll want to verify the location of the Berkeley DB directory before adding this line.  Modify it to your liking.

And, then use the command ldconfig to put it into place.  Worked for me.
I'm currently running it under Mandrake 8.2


BaTien Duong wrote:
 
Allan:
I did as what you suggested:
    1) look at RedHat RPM installation and find tcp warppers in /usr/include
and /usl/lib
    2) edit file /etc/hosts.allow to add a line 127.0.0.1 localhost and
other hosts via DNS
    3) use the following config command:

     env CPPFLAGS="-I/data/db-4.0.14/include -I/usr/include"
            LDFLAGS="-L/data/db-4.0.14/lib -L/usr/lib"
            ./configure --prefix=/data/openldap-2.1.3
                             --srcdir=/home/xyz/src/openldap-2.1.3
                             --with-wrappers