Results 1 to 5 of 5

Thread: yum stops to work

  1. #1
    Join Date
    Dec 2008
    Posts
    518

    yum stops to work

    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 !!

  2. #2
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,828
    I googled for you and came across 2 solutions which might help you:
    https://stackoverflow.com/questions/...um-not-working
    and one from 2017:
    http://www.fatalerrors.org/a/pycurl....num_locks.html
    Greetings, Richard.

  3. #3
    Join Date
    Dec 2008
    Posts
    518
    Thanks Richard.

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

  4. #4
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,355
    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.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  5. #5
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    7,811
    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
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •