程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

暂无数据

Issue with pycurl.so using custom libcurl.so path when running yum Error: undefined symbol: CRYPTO_num_locks

发布于2025-01-05 09:17     阅读(564)     评论(0)     点赞(21)     收藏(2)


I have multiple .so files on my system that require libraries from non-standard paths, which I added to /etc/ld.so.conf. My program works fine with these custom libraries, but when I try to use yum, I get the following error:

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

When I run ldd /usr/lib64/python2.7/site-packages/pycurl.so, it’s using a custom libcurl.so from /opt/folder/lib/ (which I added to for my program):

        linux-vdso.so.1 =>  (0x00007ffe417eb000)
        libcurl.so.4 => /opt/folder/lib/libcurl.so.4 (0x00007f01e3cd1000)
        libpython2.7.so.1.0 => /lib64/libpython2.7.so.1.0 (0x00007f01e3905000)

I want pycurl.so to use the system's version libs without removing the custom paths I've added for other libraries. How can I make pycurl.so use the system libraries while keeping my custom paths?

Thank you


解决方案


I found the solution, so by running the below command I do not temper with the system configuration.

LD_LIBRARY_PATH=/lib64:/usr/lib64 yum install <package>


所属网站分类: 技术文章 > 问答

作者:黑洞官方问答小能手

链接:https://www.pythonheidong.com/blog/article/2046783/61a45c25f7bea8ecd122/

来源:python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

21 0
收藏该文
已收藏

评论内容:(最多支持255个字符)