pycurl.so: undefined symbol解决方法

来源:互联网 发布:macbook视频拼接软件 编辑:程序博客网 时间:2024/06/07 12:52

问题:

$ sudo yum search pygame
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, Aug 18 2016, 15:13:37) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]


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

问题原因:

1- $: ldd  /usr/lib64/python2.6/site-packages/pycurl.so

[pea@pea wget]$ ldd /usr/lib64/python2.6/site-packages/pycurl.so
linux-vdso.so.1 =>  (0x00007fffccc93000)
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007eff3c489000) (问题所在)
libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 (0x00007eff3c0e2000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007eff3bec5000)
libc.so.6 => /lib64/libc.so.6 (0x00007eff3bb31000)
librt.so.1 => /lib64/librt.so.1 (0x00007eff3b928000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007eff3b724000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007eff3b521000)
libm.so.6 => /lib64/libm.so.6 (0x00007eff3b29c000)
/lib64/ld-linux-x86-64.so.2 (0x00007eff3c8f7000)


解决方案:

cd /usr/lib

sudo rm libcurl.so.4

sudo ln -s /usr/lib64/libcurl.so.4.1.1 /usr/lib/libcurl.so.4




1 0
原创粉丝点击