yum stops to work

pppplus

Verified User
Joined
Dec 19, 2008
Messages
518
Hi

I've a problem with yum, stopping to work.
I read a lot of things, but always the same problem.

Thanks to help me.

Code:
# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /usr/lib64/python2.7/site-packages/pycurl.so: undefined symbol: CRYPTO_num_locks

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.7.5 (default, Nov  6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq
Some informations :
# python --version
Python 2.7.5

# ldconfig -p -N -X | grep curl
libcurl.so.4 (libc6,x86-64) => /usr/local/lib/libcurl.so.4
libcurl.so (libc6,x86-64) => /usr/local/lib/libcurl.so

# which python
/bin/python

Thanks for your help !!
 

pppplus

Verified User
Joined
Dec 19, 2008
Messages
518
Thanks Richard.

I've already read these pages, and it not s
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,128
Location
GMT +7.00
Hello,

If the help articles that Richard suggested did not help you to solve the issue then I'd suggest that you either rebuild pycurl or hire somebody (it can be some active members of the forums or from any other company) to fix it for you. Though I don't have a ready guide I can investigate the issue and fix it.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,766
Location
LT, EU
If you'd need to re-build pycurl:
Code:
mv /usr/lib64/python2.6/site-packages/pycurl.so /usr/lib64/python2.6/site-packages/pycurl.so_back
rpm -ihv http://mirror.centos.org/centos/6/os/x86_64/Packages/python-devel-2.6.6-66.el6_8.x86_64.rpm
wget https://dl.bintray.com/pycurl/pycurl/pycurl-7.43.0.2.tar.gz
tar xzf pycurl-7.43.0.2.tar.gz 
cd pycurl-7.43.0.2
python setup.py build --curl-config=/usr/local/bin/curl-config
cp -p build/lib.linux-x86_64-2.6/pycurl.so /usr/lib64/python2.6/site-packages/pycurl.so
 
Top