一鍵安裝lnmp報錯 pycurl.so: undefined symbol: CRYPTO_set_locking_callback

來源:互聯網
上載者:User

標籤: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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.