From: Allan S. <as...@in...> - 2003-02-11 04:04:38
|
Trying to build -pre06, with the following in setup.cfg: libs = ldap_r lber sasl ssl crypto Once built, I try to test it by firing up python (working dir build/lib.linux-i686-2.2/) and importing ldap. My session looks like: Python 2.2.1 (#1, May 14 2002, 16:46:46) [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ldap Traceback (most recent call last): File "<stdin>", line 1, in ? File "ldap/__init__.py", line 21, in ? from _ldap import * ImportError: /usr/kerberos/lib/libk5crypto.so.3: shared object not open I saw this previously and thought it might be that I was using openldap-2.0.23, contrary to advice in the README file. So I built 2.0.27 and used those libraries to build python-ldap-2.0.0-pre06 Looking at ldd output for _ldap.so, it seems to be finding everything: $ ldd _ldap.so libldap_r.so.2 => /home/astreib/seg/openldap-2.0.27/libraries/libldap_r/.libs/libldap_r.so.2 (0x4000f000) liblber.so.2 => /home/astreib/seg/openldap-2.0.27/libraries/liblber/.libs/liblber.so.2 (0x40040000) libsasl.so.7 => /usr/local/lib/libsasl.so.7 (0x4004b000) libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4005e000) libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4008b000) libc.so.6 => /lib/libc.so.6 (0x40142000) libkrb4.so.2 => /usr/kerberos/lib/libkrb4.so.2 (0x40278000) libdes425.so.3 => /usr/kerberos/lib/libdes425.so.3 (0x4028c000) libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x40290000) libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x402e9000) libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x402fa000) libdb-4.0.so => /usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so (0x402fd000) libdl.so.2 => /lib/libdl.so.2 (0x40389000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x4038d000) libpam.so.0 => /lib/libpam.so.0 (0x403ba000) libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0x403c3000) libresolv.so.2 => /lib/libresolv.so.2 (0x403d6000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Can anyone shed any light on what exactly the error "shared object not open" means? If I specify ldap instead of ldap_r in my setup.cfg libs, I do not get this error on import ldap. Allan |