LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-01-2015, 03:44 AM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
Fail to yum package


I use Centos 6.5 server , openldap is installed in this server .

I just want to install vsftpd to this server by the following command , but it pops the error .

# yum install vsftpd
Code:
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, Nov 22 2013, 12:11:10)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq
I also checked , the openldap is installed .
#rpm -qa |grep openldap
Code:
openldap-2.4.39-8.el6.i686

Would advise why it pops the error that seems related to libldap-2.4.so.2 ? is my openldap have problem ?

Thanks
 
Old 06-01-2015, 04:14 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Did you check the provided link?
 
Old 06-01-2015, 04:52 AM   #3
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
yes , but it seems not related to my problem
 
Old 06-01-2015, 09:53 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,601

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by byran cheung View Post
I use Centos 6.5 server , openldap is installed in this server .
I just want to install vsftpd to this server by the following command , but it pops the error .

# yum install vsftpd
Code:
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, Nov 22 2013, 12:11:10)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq
I also checked , the openldap is installed .
#rpm -qa |grep openldap
Code:
openldap-2.4.39-8.el6.i686
Would advise why it pops the error that seems related to libldap-2.4.so.2 ? is my openldap have problem ?
Again, as you've been asked MANY times, PROVIDE DETAILS. This question goes nicely with your OTHER question about LDAP:
http://www.linuxquestions.org/questi...ap-4175543954/

...that you never followed up on, or even answered. Unless you're going to answer questions, there isn't much point in posting at all. Short answer: yes, you have an openLDAP problem. Whether that's because you haven't installed it correctly, configured it correctly, or for some other reason, we don't know, since you haven't provided ANY details that would let us determine this. Also, this goes back to the OTHER thread about VSFTPD:
http://www.linuxquestions.org/questi...pd-4175543581/

...which you didn't follow up on either. Unless you're going to participate in the conversation, there isn't much we can do to help you. Read the "Question Guidelines" link. Asking the same questions over and over, providing different answers to the same questions, and not showing any effort of your own isn't a good way to get help.
 
Old 06-01-2015, 11:49 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
from the information provided in the first post

you WILL have problems

CentOS 6.5 is UNSUPPORTED!!!!!

please upgrade to the ONLY currently supported version of 6

CentOS 6.6


this error looks to be caused by incompatible repos
please provide the repo list
Code:
su -
yum repolist all 

------- and provide the out put of this -----

cat /etc/redhat-release
 
Old 06-01-2015, 07:29 PM   #6
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
#cat /etc/redhat-release
Code:
CentOS release 6.5 (Final)

# yum repolist all
Code:
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: wrong ELF class: ELFCLASS64

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, Nov 22 2013, 12:11:10)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq
 
Old 06-02-2015, 12:13 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
by chance did you try UPGRADING( replace) python ?
yum REQUIRES!!!!! the DEFAULT installed version and ONLY that version

it can not be replaced

you can install a second newer version of python in a "side by side" configuration

also with the ONLY supported version of 6 as 6.6 and you are on the old unsupported 6.5

there might be a mismatch from the third party repos and the installed ( and NOT!!! up to date ) software


check to see it "rpm" program is ALSO busted
"yum" is so....

Code:
su -
rpm -qa | grep release
if that dose not output the "centos-release-6-5.el6.centos.11.1.x86_64.rpm"
then it is busted also
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
yum update always seems to fail, and I can't seem to install anything D: rayyu Linux - Newbie 2 07-23-2012 09:03 AM
Fail to install package joboy Ubuntu 6 06-24-2012 11:34 AM
[SOLVED] Fail to download package joboy Ubuntu 2 04-10-2012 09:40 AM
yum the stubborn yum; not allowing to update any package lazer00 Linux - Software 1 03-24-2011 07:41 PM
yum install perl Net::SSh fail powah Linux - General 1 09-11-2007 11:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:50 AM.

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