Dear all,
I am working on Centos 6 (2.6.32-71.29.1.el6.x86_64).
After removing openldap (openldap-2.4.19-15.el6.x86_64), i can not perform command yum (or /usr/bin/yum).
*Here is error:
[root@Cent6 ~]# yum search anypackage
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libldap-2.4.so.2: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.5 (r265:79063, Jun 25 2011, 08:36:25)
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)]
If you cannot solve this problem yourself, please go to
the yum faq at:
LOG strace:
[root@Cent6 ~]# strace -o erroryum /usr/bin/yum search anypackage
[root@Cent6 ~]# cat erroryum | grep libldap
open("/lib64/tls/x86_64/libldap-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libldap-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib64/x86_64/libldap-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib64/libldap-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/x86_64/libldap-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/tls/libldap-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/x86_64/libldap-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/libldap-2.4.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
[root@Cent6 ~]# ldconfig -p | grep libldap
(no see anything)
Below is info of packages which i've installed:
1/
yum-3.2.27-14.el6.centos.noarch
PackageKit-yum-0.5.8-13.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
yum-plugin-fastestmirror-1.1.26-11.el6.noarch
2/[root@Cent6 ~]# rpm -qR yum
/usr/bin/python
config(yum) = 3.2.27-14.el6.centos
pygpgme
python >= 2.4
python(abi) = 2.6
python-iniparse
python-sqlite
python-urlgrabber >= 3.9.0-8
rpm >= 0:4.4.2
rpm-python
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
yum-metadata-parser >= 1.1.0
yum-plugin-fastestmirror
rpmlib(PayloadIsXz) <= 5.2-1
3/[root@Cent6 ~]# ldd /usr/bin/yum
not a dynamic executable
4/[root@Cent6 ~]# rpm -qa | grep python
python-libs-2.6.5-3.el6_0.2.x86_64
gstreamer-python-0.10.16-1.1.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
python-decorator-3.0.1-3.1.el6.noarch
gnome-python2-gnomekeyring-2.28.0-4.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
python-markupsafe-0.9.2-4.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
gnome-python2-bonobo-2.28.0-3.el6.x86_64
gnome-python2-libwnck-2.28.0-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
gnome-python2-desktop-2.28.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
python-crypto-2.0.1-22.el6.x86_64
python-beaker-1.3.1-6.el6.noarch
gnome-python2-applet-2.28.0-4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
cracklib-python-2.8.16-4.el6.x86_64
notify-python-0.1.1-10.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
python-slip-0.2.11-1.el6.noarch
python-urlgrabber-3.9.1-7.el6.noarch
gnome-python2-gnome-2.28.0-3.el6.x86_64
python-mako-0.3.4-1.el6.noarch
gnome-python2-libegg-2.25.3-20.el6.x86_64
python-2.6.5-3.el6_0.2.x86_64
libuser-python-0.56.13-4.el6_0.1.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
python-meh-0.9-1.el6.noarch
python-ethtool-0.3-5.1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
python-pycurl-7.19.0-8.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
5/[root@Cent6 ~]# rpm -ql openldap-devel |grep libldap
/usr/lib64/evolution-openldap/lib64/libldap.a
/usr/lib64/evolution-openldap/lib64/libldap_r.a
/usr/lib64/libldap.so
/usr/lib64/libldap_r.so
6/[root@Cent6 ~]# ls -ll /usr/lib64/libldap.so
lrwxrwxrwx. 1 root root 20 Sep 29 16:06 /usr/lib64/libldap.so -> libldap-2.4.so.2.5.2
I wonder why yum need to "call" libldap. I think yum program build with no a dynamic executable:
[root@Cent6 ~]# ldd /usr/bin/yum
not a dynamic executable
Thanks all you much and sorry for my English.
all4cfa