Error YUM after removing openldap | Unix Linux Forums | Linux

  Go Back    


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Error YUM after removing openldap

Linux


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-06-2011
all4cfa all4cfa is offline
Registered User
 
Join Date: Aug 2011
Last Activity: 24 February 2012, 4:18 AM EST
Posts: 10
Thanks: 3
Thanked 0 Times in 0 Posts
Error YUM after removing openldap

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:


Code:
[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:


Code:
[root@Cent6 ~]# strace -o erroryum /usr/bin/yum search anypackage


Code:
[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)


Code:
[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


Code:
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


Code:
3/[root@Cent6 ~]# ldd /usr/bin/yum
    not a dynamic executable


Code:
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


Code:
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


Code:
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:

Code:
[root@Cent6 ~]# ldd /usr/bin/yum
    not a dynamic executable

Thanks all you much and sorry for my English.

all4cfa
Sponsored Links
    #2  
Old 10-07-2011
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 20 December 2014, 7:46 AM EST
Location: /dev/ph
Posts: 4,842
Thanks: 64
Thanked 434 Times in 402 Posts
Yum should not have allowed you to remove openldap do this due to dependencies. Yum uses curl which has a dependency on the ldap library. Did you override any warnings?

You need to boot from an install disk in rescue mode and reinstall yum and any dependencies from this disk using rpm.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need OpenLDAP Help rjlohman Red Hat 0 08-05-2009 02:31 PM
error in removing the package ani_rvce Solaris 2 11-13-2008 05:27 PM
grub error 22,after removing linux partitions only windows is threre.Pc not booting.i pankajd Linux 2 09-09-2008 01:17 AM
openLDAP with Aix pascalbout AIX 0 04-26-2006 10:50 AM



All times are GMT -4. The time now is 02:38 PM.