Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux Yum Fatal Python error: pycurl: libcurl link-time version is older than compile-time version

So this error is driving me crazy, I've search the web multiple times, ran a few things and no results. I get the following error when using yum.

[root@texas pycurl-7.19.0]# yum update
Fatal Python error: pycurl: libcurl link-time version is older than compile-timeversion
Aborted


[root@texas pycurl-7.19.0]# rpm -qa | grep pycurl
python-pycurl-7.19.0-8.el6.i686
[root@texas pycurl-7.19.0]# rpm -qa | grep curl
curl-7.19.7-26.el6_2.4.i686
libcurl-7.19.7-26.el6_2.4.i686
python-pycurl-7.19.0-8.el6.i686
[root@texas pycurl-7.19.0]# 




[root@texas /]# locate libcurl.so
/usr/lib/libcurl.so
/usr/lib/libcurl.so.4
/usr/lib/libcurl.so.4.1.1


[root@texas /]# locate pycurl
/usr/lib/python2.6/site-packages/pycurl-7.19.0-py2.6.egg-info
/usr/lib/python2.6/site-packages/pycurl.so
/usr/share/doc/python-pycurl-7.19.0

I've recompiled my directadmin build with curl and no change after that either. (I already had directadmin with curl working fine before)

Any help is appreciated.

like image 676
Vernard Avatar asked Dec 27 '22 12:12

Vernard


2 Answers

I just had the same issue. Someone just played with LD_LIBRARY_PATH.

unset LD_LIBRARY_PATH; yum update

or

LD_LIBRARY_PATH='' yum update

does the trick for me.

like image 35
abitmol Avatar answered Jan 13 '23 21:01

abitmol


I have found that VMWare Toolkit caused this issue on CentOS VMs.

vi /etc/ld.so.conf.d/vmware-tools-libraries.conf

and add the following two lines at the top (assuming you're 64-bit):

/lib64 /usr/lib64

Save, and "ldconfig".

like image 197
level6 Avatar answered Jan 13 '23 19:01

level6