LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-24-2015, 01:58 PM   #1
linu07
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Rep: Reputation: Disabled
libldap-2.4.so.2: cannot open shared object file: No such file or directory


Hi Team,

I am having an issue with my Redhat 6 , I removed openldap package by mistakenly with rpm with --nodeps as option and from that time i am unable to install any package. It would be very great if anyone help me out of this issue.
Error Details:
--------------
# yum install samba*
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.6 (r266:84292, Sep 12 2011, 14:03:14)
[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
 
Old 07-24-2015, 02:00 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Hi,

How about reinstallng ldap?
 
Old 07-24-2015, 02:05 PM   #3
linu07
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
i am unable to install any package after this it shows the same error output
yum install openldap*
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.6 (r266:84292, Sep 12 2011, 14:03:14)
[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
 
Old 07-24-2015, 02:11 PM   #4
linu07
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi Spaier,

I even tried to update rpm from CD but unable to ..
 
Old 07-24-2015, 02:35 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Why not use rpm? From the man page I assume that something like rpm -i --nodeps --force <package> would work. Or see here.
 
Old 07-24-2015, 02:52 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
only use rpm as a LAST resort if yum is busted

yum was built to SOLVE the issues rpm causes

as with everything they are exceptions
but a base system program is NOT one of them
use yum to reinstall "ldap" -- period!!!
get the correct name with a search
Code:
su -
yum search ldap
then reinstall it using the name in the above list

Code:
su -
yum reinstall openldap2

Quote:
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Sep 12 2011, 14:03:14)
[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)]

did you REPLACE the DEFAULT!!!!!!! python????????

-- you can not do that
it will FUBAR the system


you will need to MANUALLY replace ( using copy/paste ) from the extracted RHEL python rpm

basically you are "up BLEEPED's" creek with out a paddle "


contact redhat tech support and they can talk you through that
you WILL!!! need the REQUIRED redhat support contract that YOU BOUGHT TO FIX THIS

-- there are no real "if's and's or but's"
you will need that support contract !!!
the standard one year contract is i think $799 PER YEAR for a server ( might have a $399/year)

Last edited by John VV; 07-24-2015 at 02:55 PM.
 
Old 07-24-2015, 03:31 PM   #7
linu07
LQ Newbie
 
Registered: Jul 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi Didier,

i tried with rpm it was showing warning mss with header V3 RSA/SHA256 signature key.
Packages]# rpm -i --nodeps --force openldap-
openldap-2.4.23-20.el6.i686.rpm openldap-clients-2.4.23-20.el6.x86_64.rpm openldap-devel-2.4.23-20.el6.x86_64.rpm
openldap-2.4.23-20.el6.x86_64.rpm openldap-devel-2.4.23-20.el6.i686.rpm openldap-servers-2.4.23-20.el6.x86_64.rpm
[root@server Packages]# rpm -i --nodeps --force openldap-2.4.23-20.el6.i686.rpm
warning: openldap-2.4.23-20.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
[root@server Packages]# rpm -i --nodeps --force openldap-clients-2.4.23-20.el6.x86_64.rpm
warning: openldap-clients-2.4.23-20.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
[root@server Packages]# rpm -i --nodeps --force openldap-devel-2.4.23-20.el6.x86_64.rpm
warning: openldap-devel-2.4.23-20.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

Hi John,

I tried with yum search ldap
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
test | 4.0 kB 00:00 ...
==================================================================================================== ========= N/S Matched: ldap ==================================================================================================== =========
apr-util-ldap.x86_64 : APR utility library LDAP support
bind-dyndb-ldap.x86_64 : LDAP back-end plug-in for BIND
compat-openldap.i686 : OpenLDAP compatibility shared libraries
compat-openldap.x86_64 : OpenLDAP compatibility shared libraries
krb5-server-ldap.i686 : The LDAP storage plugin for the Kerberos 5 KDC
krb5-server-ldap.x86_64 : The LDAP storage plugin for the Kerberos 5 KDC
ldapjdk.x86_64 : The Mozilla LDAP Java SDK
mod_authz_ldap.x86_64 : LDAP authorization module for the Apache HTTP Server
openldap.i686 : LDAP support libraries
openldap.x86_64 : LDAP support libraries
openldap-clients.x86_64 : LDAP client utilities
openldap-devel.i686 : LDAP development libraries and header files
openldap-devel.x86_64 : LDAP development libraries and header files
openldap-servers.x86_64 : LDAP server
pam_ldap.i686 : PAM module for LDAP
pam_ldap.x86_64 : PAM module for LDAP
perl-LDAP.noarch : LDAP Perl module
perl-Mozilla-LDAP.x86_64 : LDAP Perl module that wraps the OpenLDAP C SDK
php-ldap.x86_64 : A module for PHP applications that use LDAP
python-ldap.x86_64 : An object-oriented API to access LDAP directory servers
libldb.i686 : A schema-less, ldap like, API and database
libldb.x86_64 : A schema-less, ldap like, API and database
migrationtools.noarch : Migration scripts for LDAP
nss-pam-ldapd.i686 : An nsswitch module which uses directory servers
nss-pam-ldapd.x86_64 : An nsswitch module which uses directory servers

Name and summary matches only, use "search all" for everything.
--------------------
yum install openldap*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Examining openldap-2.4.23-20.el6.i686.rpm: openldap-2.4.23-20.el6.i686
Marking openldap-2.4.23-20.el6.i686.rpm to be installed
Package openldap-2.4.23-20.el6.i686 already installed and latest version
openldap-2.4.23-20.el6.i686.rpm: does not update installed package.
Examining openldap-2.4.23-20.el6.x86_64.rpm: openldap-2.4.23-20.el6.x86_64
Marking openldap-2.4.23-20.el6.x86_64.rpm to be installed
Package openldap-2.4.23-20.el6.x86_64 already installed and latest version
openldap-2.4.23-20.el6.x86_64.rpm: does not update installed package.
Examining openldap-clients-2.4.23-20.el6.x86_64.rpm: openldap-clients-2.4.23-20.el6.x86_64
openldap-clients-2.4.23-20.el6.x86_64.rpm: does not update installed package.
Examining openldap-devel-2.4.23-20.el6.i686.rpm: openldap-devel-2.4.23-20.el6.i686
Marking openldap-devel-2.4.23-20.el6.i686.rpm to be installed
Package openldap-devel-2.4.23-20.el6.i686 already installed and latest version
openldap-devel-2.4.23-20.el6.i686.rpm: does not update installed package.
Examining openldap-devel-2.4.23-20.el6.x86_64.rpm: openldap-devel-2.4.23-20.el6.x86_64
Marking openldap-devel-2.4.23-20.el6.x86_64.rpm to be installed
Package openldap-devel-2.4.23-20.el6.x86_64 already installed and latest version
openldap-devel-2.4.23-20.el6.x86_64.rpm: does not update installed package.
Examining openldap-servers-2.4.23-20.el6.x86_64.rpm: openldap-servers-2.4.23-20.el6.x86_64
openldap-servers-2.4.23-20.el6.x86_64.rpm: does not update installed package.
Error: Nothing to do
--------------------------------

Dependency resolved and now i am able to install packages through yum.. thanks for all your support Didier and John.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ??? Error: libXp.so.6: cannot open shared object file: No such file or directory castles Linux - Newbie 9 03-26-2018 04:31 AM
[SOLVED] cannot open shared object file: No such file or directory - but the file is there! Ook Slackware 5 08-24-2011 05:13 PM
libldap.so.2 cannot open shared object file- No such file or directory fuhrermasai Linux - Newbie 3 12-02-2010 11:41 PM
cannot open shared object file: No such file or directory (0) SQLSTATE=00000?? suliman_shah Programming 3 08-23-2007 01:02 PM
libawt.so: libXp.so.6: cannot open shared object file: No such file or directory man26 *BSD 0 09-10-2004 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration