標籤:undefined possible provides leading version
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, Nov 22 2013, 12:16:22)
[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
以上為報錯資訊,下面是解決辦法
原因可能是安裝lnmp時,安裝了libcurl。
輸出ldconfig -v | grep libcurl,發現有2個libcurl
ldconfig: 無法對 /usr/local/mysql/lib 進行 stat 操作: 沒有那個檔案或目錄
ldconfig: 多次給出路徑“/usr/local/lib”
ldconfig: 多次給出路徑“/lib”
ldconfig: 多次給出路徑“/usr/lib”
ldconfig: 多次給出路徑“/usr/lib64”
ldconfig: 無法對 /usr/lib/libmcrypt.so 進行 stat 操作: 沒有那個檔案或目錄
libcurl.so.4 -> libcurl.so.4.4.0
libcurl.so.4 -> libcurl.so.4.1.1
直接將/usr/local/lib/libcurl.so.4 軟串連到舊有libcurl中
find / -name libcurl.so.4 看一下
一般系統安裝的libcurl目錄是 /usr/lib64/libcurl.so.4 或 /usr/lib/libcurl.so.4
把另外一個刪除,然後ldconfig 應該就可以
rm /usr/local/lib/libcurl.so.4
rm -rf /usr/local/lib/libcurl*
ln -s /usr/lib64/libcurl.so.4.1.1 /usr/local/lib/libcurl.so.4
本文出自 “網路資訊,Linux營運” 部落格,請務必保留此出處http://fenyuer.blog.51cto.com/11265169/1875808
一鍵安裝lnmp報錯 pycurl.so: undefined symbol: CRYPTO_set_locking_callback