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

Re: OpenLDAP 2.1.3 and Berkeley DB 4.0.14



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
 
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
DBGROUPS
----- Original Message -----
From: Doug Lytle
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

I was stuck at the same place when running "make test" with the error:
    ldap-bind: Can't contact LDAP server (81)
    Test failed

Could some one help? Thanks.


----- Original Message -----
From: "Alan Sparks" <asparks@doublesparks.net>
To: <batien.duong@dbgroups.com>
Cc: <openldap-software@OpenLDAP.org>
Sent: Friday, July 26, 2002 2:43 PM
Subject: Re: OpenLDAP 2.1.3 and Berkeley DB 4.0.14


> Is there a chance you've compiled with TCP wrappers support?  You may have
> to add an entry to your /etc/hosts.allow file for service 'slapd',
> allowing localhost (and other network addresses as desired) to get in.
>
> Happened to me.  Failed test 1 off the bat.  Realized it when I saw the
> "connection refused" message in the tests/test-db/master.log file.
>
> HTH.
> -Alan
>
> BaTien Duong said:
> > Thanks for general information about installation issues of OpenLDAP
> > 2.1.3 and Berkeley DB 4.0.14. I return to tackle this issue and get
> > another road block.
> >
> > Environment: RedHat Linux 7.3 and 7.2 on Intel
> > BDB configured with --prefix=/data/db-4.0.14
> > OpenLDAP 2.1.3 is configured as following:
> >
> >     env CPPFLAGS=-I/data/db-4.0.14/include
> >            LDFLAGS=-L/data/db-4.0.14/lib
> >            ./configure --prefix=/data/openldap-2.1.3
> >                             --srcdir=/home/xyz/src/openldap-2.1.3
> >
> > The configuration runs without any error of BerkeleyDB version
> > imcompatible. So do make depend and make.
> >
> > However, in the make test, I got the error: Can't contact Ldap server -
> > test failed. I remember to read somewhere about extra required
> > information, otherwise the slapd will not start. Could someone point me
> > to the right info and/or give me a quick solution.
> >
> > Thanks. This is a great community
>
> ===========
> Alan Sparks, UNIX/Linux Systems Administrator
> <asparks@doublesparks.net>