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

LD_LIBRARY_PATH exported but libdb-4.6.so not found



I updated from 2.4.21 to 2.4.23 in some old Fedoras and also in a CentOS 5.4.

Before compiling, I run:

export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.6/lib
export CPPFLAGS="-I/usr/local//BerkeleyDB.4.6/include"
export LDFLAGS="-L/usr/local/BerkeleyDB.4.6/lib"

and it compiles ok. But after installed, in 3 out 4 of the used servers, slapd doesn't start unless I execute first:

export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.6/lib

Attached, the output of ldd /usr/local/libexec/slapd, before and after running export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.6/lib. In short:

without LD_LIBRARY_PATH defined:

        libdb-4.6.so => not found

with LD_LIBRARY_PATH as above:

        libdb-4.6.so => /usr/local/BerkeleyDB.4.6/lib/libdb-4.6.so (0x00002b4eb2c16000)

Could you please explain me why this might be happening? Is this a bug? This issue ocurred to me in at least 3 server, but I have another CentOS 5.4, where the compilation and the install process run just fine, and I didn't need that workaround.

Thank you,

Pablo Chamorro

La información contenida en este mensaje y cualquiera de sus adjuntos es confidencial, para el uso exclusivo de la persona o entidad destinataria. Si usted ha recibido este mensaje por equivocación, se le notifica que no está autorizado para revisarlo, reenviarlo, imprimirlo, copiarlo o distribuirlo de forma parcial o total; por favor comunique el error a la persona que lo envía y elimínelo. Las opiniones y puntos de vista presentados en este mensaje son responsabilidad de quien firma el mensaje y no representan necesariamente la posición y puntos de vista de INGEOMINAS. Este mensaje de correo electrónico ha sido analizado por el antivirus Mcafee.

Confidentiality Notice The information in this message and any attachments is confidential, it is for exclusive use of the person or entity to which it is addressed. If you have received this message in error, you are notified that you are not authorized to review, re-transmit, print out, disseminate, copy or distribute it in partial or total way; please communicate the mistake to the person who sent this message and delete it. The opinions and points of view stated in this message with responsibility by who signed the message, do not necessarily represent the opinion or point of view of INGEOMINAS. This electronic mail message was scanned by the Mcafee anti-virus.


[root@linux ~]# ldd /usr/local/libexec/slapd
        libltdl.so.3 => /usr/lib64/libltdl.so.3 (0x0000003a28c00000)
        libuuid.so.1 => /lib64/libuuid.so.1 (0x0000003a28800000)
        libdb-4.6.so => not found
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003a28400000)
        libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x0000003e18200000)
        libssl.so.6 => /lib64/libssl.so.6 (0x00000039a8c00000)
        libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00000039a8800000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003a31400000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003a2b000000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003a27800000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003a27c00000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003a27400000)
        libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x00000039eb800000)
        libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00000039eb000000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003a2b400000)
        libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00000039eb400000)
        libz.so.1 => /lib64/libz.so.1 (0x000000329fa00000)
        libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00000039eac00000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003a2c000000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003a29000000)
        libsepol.so.1 => /lib64/libsepol.so.1 (0x00002b62fa50c000)
[root@linux ~]#
[root@linux ~]# export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.6/lib
[root@linux ~]#
[root@linux ~]# ldd /usr/local/libexec/slapd
        libltdl.so.3 => /usr/lib64/libltdl.so.3 (0x0000003a28c00000)
        libuuid.so.1 => /lib64/libuuid.so.1 (0x0000003a28800000)
        libdb-4.6.so => /usr/local/BerkeleyDB.4.6/lib/libdb-4.6.so (0x00002b4eb2c16000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003a28400000)
        libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x0000003e18200000)
        libssl.so.6 => /lib64/libssl.so.6 (0x00000039a8c00000)
        libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00000039a8800000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003a31400000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003a2b000000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003a27800000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003a27c00000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003a27400000)
        libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x00000039eb800000)
        libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00000039eb000000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003a2b400000)
        libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00000039eb400000)
        libz.so.1 => /lib64/libz.so.1 (0x000000329fa00000)
        libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00000039eac00000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003a2c000000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003a29000000)
        libsepol.so.1 => /lib64/libsepol.so.1 (0x00002b4eb2f43000)