标签:
可能是因为重复安装了curl .7.45 ,导致yum报错:
/usr/lib64/python2.6/site-packages/pycurl.so: undefined symbol: CRYPTO_set_locking_callback
网上看到是动态库冲突,按网上说的如下操作:
[root@iZ94nhwre0dZ ~]# ldd /usr/lib64/python2.6/site-packages/pycurl.so linux-vdso.so.1 => (0x00007fff677f6000) libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007f826a94a000) libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 (0x00007f826a5a4000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f826a386000) libc.so.6 => /lib64/libc.so.6 (0x00007f8269ff2000) librt.so.1 => /lib64/librt.so.1 (0x00007f8269dea000) libz.so.1 => /lib64/libz.so.1 (0x00007f8269bd3000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f82699cf000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f82697cc000) libm.so.6 => /lib64/libm.so.6 (0x00007f8269547000) /lib64/ld-linux-x86-64.so.2 (0x000000384b200000) [root@iZ94nhwre0dZ ~]# find / -name "libcurl.so.4" /usr/lib/libcurl.so.4 /usr/lib64/libcurl.so.4 /usr/local/lib/libcurl.so.4 /usr/local/att/curl-7.45.0/lib/.libs/libcurl.so.4 [root@iZ94nhwre0dZ ~]# find / -name "libcurl.so.4"
libcurl.so.4指向四个动态库
一开始以为应该是指向是第一个动态库,就把这三个库删除了
/usr/lib64/libcurl.so.4
/usr/local/lib/libcurl.so.4
/usr/local/att/curl-7.45.0/lib/.libs/libcurl.so.4
之后报错,找了好久才发现原来应该指向/usr/lib64/libcurl.so.4
保留/usr/lib64/libcurl.so.4
删除其余的,问题解决。
标签:
原文地址:http://www.cnblogs.com/yudaxian/p/5020339.html