Sponsored Content
Operating Systems Linux Error YUM after removing openldap Post 302562433 by all4cfa on Thursday 6th of October 2011 10:48:20 PM
Old 10-06-2011
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
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Centos commands: Yum Upgrade versus Yum update

Hi, I would like to know the difference between YUM UPDATE and YUM UPGRADE. The man pages say upgrade is same as update with the obsolete option. And by default it says the obsolete option is turned on, which would make them equivalent. Does not say what obsolete does. Can someone please... (3 Replies)
Discussion started by: mojoman
3 Replies

2. Red Hat

yum error

i have install fresh redhat ent 6.1 and i have configure yum server with ftp but am get this error error 14] PYCURL ERROR 9 - "Server denied you to change to the given directory" i have checked every thing (3 Replies)
Discussion started by: drpix
3 Replies

3. Red Hat

Yum error

Hi, I have configure local yum repository in my red hat linux on vmware. Below are the steps i followed 1. mkdir -p /root/install/RPMS 2. Copy all the software/packages RPMS from instillation CD/DVD to /root/install/RPMS directory 3. rpm -ivh createrepo-0.4.11-3.el5.rpm 4. createrepo... (5 Replies)
Discussion started by: chetansingh23
5 Replies

4. Red Hat

OpenLDAP Server Configuration error

I followed the guide from the below link to set up a ldap server. After everything is finished, I configured a client for ldap authentication and I can search the entries in ldap using the command ldapsearch -x ZZ but when I am trying to login to the client using a ldap user, the prompt just keeps... (0 Replies)
Discussion started by: aninmuk
0 Replies

5. UNIX for Dummies Questions & Answers

Yum gives error : filename does not end in .rpm.

Hi there /root #yum localinstall sg3_utils Loaded plugins: product-id, refresh-packagekit, subscription-manager Updating Red Hat repositories. Setting up Local Package Process Skipping: sg3_utils, filename does not end in .rpm. Nothing to do /root # above is the error /root... (6 Replies)
Discussion started by: heman96
6 Replies

6. Red Hat

Yum client configuration error

Dear concern, I want to configure a yum client node. Yum configuration file (/etc/yum.repos.d/) is given below: # cat server.repo name=rhel6 baseurl=ftp://192.168.225.3/pub/Packages/ enabled=1 gpgcheck=0 We got following error message while executing yum list command. # yum clean... (1 Reply)
Discussion started by: makauser
1 Replies

7. Linux

Yum skip-broken error

I'm trying to install mysql-connector-odbc using yum. It gives me this error. Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. ... (2 Replies)
Discussion started by: adi.6194
2 Replies

8. Fedora

Yum update error

Hello, I issued # yum update and received below error. Any idea? # yum update Loaded plugins: fastestmirror, universal-hooks Setting up Update Process Loading mirror speeds from cached hostfile * cpanel-addons-production-feed: 204.10.37.146 * base: mirrors.oit.uci.edu * extras:... (3 Replies)
Discussion started by: feroccimx
3 Replies

9. UNIX for Beginners Questions & Answers

Installation of virt-manager while yum update and yum install rhvm does not work

I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal. I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies

10. UNIX for Beginners Questions & Answers

Openldap: getting error as ldap_bind: Invalid credentials (49)

Hi, we are setting up an hadoop environment in Azure. we are having java 7 installed and below steps which i have completed and getting error while as "ldap_bind: Invalid credentials (49)" doing ldapsearch 1. I have installed openldap-servers.x86_64 openldap-clients.x86_64... (2 Replies)
Discussion started by: Bibhusisa
2 Replies
All times are GMT -4. The time now is 06:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy