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

Re: dynamic vs static linking of db in 2.2.15

tor, 12.08.2004 kl. 22.15 skrev James Courtney:


> When I compile OpenLDAP 2.2.15 with the same script
> /apps/openldap/2.2.15/sbin/slapcat errors out with:
> ./sbin/slapcat: error while loading shared libraries: libdb-4.2.so:
> cannot open shared object file: No such file or directory
> When I strace this I see it trying to load libdb-4.2.so from many
> default OS locations and never /apps/db/4.2.52/lib.
> The contents of my /apps/db/4.2.52/lib directory is:
> libdb-4.2.a  libdb-4.2.la  libdb-4.2.so  libdb-4.so  libdb.a  libdb.so
> So all appears well there.
> Is the "--with-bdb-module=static" option for the configure script
> still valid for 2.2.15?
> I see it when I do ./configure --help for 2.1.25 but not for 2.2.15.
> Am I going to HAVE to resort to using LD_LIBRARY_PATH?

You're using RHEL3? Add /apps/db/4.2.52/lib to /etc/ld.so.conf and run
ldconfig as root.

> I'd REALLY prefer to statically link this if I could.

./configure --help | less


My resume - CV - says that I speak a few languages fluently. I
have academic qualifications in all of them. It doesn't mention
"catese" or "dogese". I speak fluent catese and reasonable dogese,
but I've never taken any exams in them, never needed to.

mail: tonye@billy.demon.nl