close

當使用yum 時出現下列錯誤

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, Jan 22 2014, 09:42:36) 

[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]

 

If you cannot solve this problem yourself, please go to 

the yum faq at:

  http://yum.baseurl.org/wiki/Faq

找一下pkg 相依性

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

linux-vdso.so.1 =>  (0x00007fffd9fdd000)

libcurl.so.4 => /usr/local/MATLAB/MATLAB_Compiler_Runtime/v80/bin/glnxa64/libcurl.so.4 (0x00007fd341e28000)

libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 (0x00007fd341a71000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fd341854000)

libc.so.6 => /lib64/libc.so.6 (0x00007fd3414c0000)

libdl.so.2 => /lib64/libdl.so.2 (0x00007fd3412bb000)

libutil.so.1 => /lib64/libutil.so.1 (0x00007fd3410b8000)

libm.so.6 => /lib64/libm.so.6 (0x00007fd340e34000)

/lib64/ld-linux-x86-64.so.2 (0x0000003fbd400000)

發現libcurl.so.4指到最近安裝的runtime MATLAB 裡面的路徑了,所以yum 用到rumtime matlab的libcurl.so.4導致有些symbol認不到

另外rpm -qf 可以幫你回找相依的pkg

rpm -qf /usr/lib64/libpython2.6.so.1.0

python-libs-2.6.6-52.el6.x86_64

 

solution: 

LD_LIBRARY_PATH裡的關於matlab的路徑拿掉, 重新執行yum 即可

 

 

 

 

arrow
arrow
    全站熱搜
    創作者介紹

    quantum2nd 發表在 痞客邦 留言(0) 人氣()