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


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, Apr  2 2020, 13:16:51)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

 

解決方法:

使用  ldconfig -p | grep curl  查看libcurl.so的鏈接情況
[user01@node3 ~]$   ldconfig -p | grep curl
    libcurl.so.4 (libc6,x86-64) => /lib64/libcurl.so.4
    libcurl.so (libc6,x86-64) => /lib64/libcurl.so


分別查看libcurl.so.4鏈接的文件

ls -l /lib64/libcurl.so.4

lrwxrwxrwx. 1 root root 16 May 21  2020 /lib64/libcurl.so.4 -> libcurl.so.4.3.0


ls -l /lib64/libcurl.so

lrwxrwxrwx. 1 root root 16 Sep 25 16:10 /lib64/libcurl.so -> libcurl.so.4.3.0


刪除其中高版本的

刪除之后使用命令ldconfig重新加載

加載完成后使用ldconfig -p | grep curl查看libcurl.so的鏈接情況,保證只有一個libcurl.so.4


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM