如题,重装系统后发现yum报错:
[root@abc DMS]# yum install vim There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: /usr/lib64/python2.6/site-packages/pycurl.so: undefined symbol: CRYPTO_set_locking_callback 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.6.6 (r266:84292, Sep 4 2013, 07:46:00) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq [root@abc DMS]#
本着有事找百度的原则,找到大佬微博:https://www.cnblogs.com/joeone/p/9253453.html
查看依赖:
[root@abc DMS]# ldd /usr/lib64/python2.6/site-packages/pycurl.so linux-vdso.so.1 => (0x00007fffd97ff000) libcurl.so.4 => /home/vie61jiexiang/lwj/ISA50_OFF_1016/isakits/bin64/libcurl.so.4 (0x00007f36cbe2f000) libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 (0x00007f36cba78000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f36cb85b000) libc.so.6 => /lib64/libc.so.6 (0x00007f36cb4c7000) libz.so.1 => /lib64/libz.so.1 (0x00007f36cb2b0000) librt.so.1 => /lib64/librt.so.1 (0x00007f36cb0a8000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f36caea4000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f36caca0000) libm.so.6 => /lib64/libm.so.6 (0x00007f36caa1c000) /lib64/ld-linux-x86-64.so.2 (0x0000003a84a00000) [root@abc DMS]#
libcurl.so.4指向了新安装的软件的库文件,那就把新安装软件的库文件换成系统自带的试下:
[root@abc DMS]# [root@abc DMS]# cd /home/vie61jiexiang/lwj/ISA50_OFF_1016/isakits/bin64/ [root@abc bin64]# cp libcurl.so.4 libcurl.so.4.bak [root@abc bin64]# [root@abc bin64]# rm -rf libcurl.so.4 [root@abc bin64]# [root@abc bin64]# ln -s /usr/lib64/libcurl.so.4.1.1 ./ [root@abc bin64]# cp /usr/lib64/libcurl.so.4.1.1 ./libcurl.so.4
然后测试yum:
[root@abc bin64]# yum install vim Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. base | 3.9 kB 00:00 ... Not using downloaded repomd.xml because it is older than what we have: Current : Mon Nov 10 23:29:40 2014 Downloaded: Tue Nov 12 03:16:28 2013 Setting up Install Process Package 2:vim-enhanced-7.2.411-1.8.el6.x86_64 already installed and latest version Nothing to do [root@abc bin64]#
恢复了。。。。
记得检查安装的软件是不是正常使用。。。
重启系统后yum无法使用:CRYPTO_set_locking_callback
原文:https://www.cnblogs.com/wjlv/p/10697107.html