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

时间:2021-07-11 11:45:40

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

是因为yum动态库使用了新安装libcurl库导致的。使用ldd查看动态库依赖关系:

ldd /usr/lib64/python2.7/site-packages/pycurl.so

删除动态库配置中的新的curl路径即可

[root@localhost curl-7.65.3]# vim /etc/ld.so.conf

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

删除curl的路径 /usr/local/curl/lib/

[root@localhost lib64]# ldconfig  //立即生效

验证yum命令是否可以正常执行

[root@localhost lib64]# yum list