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

13,132

Solution 1

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".

Solution 2

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.

Share:
13,132
Vernard
Author by

Vernard

Updated on June 15, 2022

Comments

  • Vernard
    Vernard almost 2 years

    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.