VPS侦探论坛

 找回密码
 注册
查看: 6965|回复: 10

一键安装lnmp报错pycurl.so: undefined symbol: CRYPTO_set_locking_callback 请问怎么解决

[复制链接]
发表于 2016-11-15 21:59:58 | 显示全部楼层 |阅读模式

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
  
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-11-16 09:04:53 | 显示全部楼层


ldconfig -v | grep libcurl看一下
应该是存在多个libcurl造成的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-11-16 10:14:51 | 显示全部楼层

回复 2# 的帖子


ldconfig -v | grep 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
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-11-16 11:36:32 | 显示全部楼层



find / -name libcurl.so.4 看一下
一般系统安装的libcurl目录是 /usr/lib64/libcurl.so.4 或 /usr/lib/libcurl.so.4
把另外一个删除,然后ldconfig 应该就可以
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-11-16 15:22:22 | 显示全部楼层

回复 4# 的帖子


find / -name libcurl.so.4
/usr/local/lib/libcurl.so.4
/usr/lib64/libcurl.so.4
[root@localhost ~]# rm -rf /usr/local/lib/libcurl.so.4
[root@localhost ~]# find / -name libcurl.so.4
/usr/lib64/libcurl.so.4
[root@localhost ~]# ldconfig -v | grep libcurl
ldconfig: 无法对 /usr/local/mysql/lib 进行 stat 操作: 没有那个文件或目录
ldconfig: 多次给出路径“/usr/local/lib”
ldconfig: 多次给出路径“/lib”
ldconfig: 多次给出路径“/usr/lib”
ldconfig: 多次给出路径“/usr/lib64”
        libcurl.so.4 -> libcurl.so.4.4.0 (改变)
ldconfig: 无法对 /usr/lib/libmcrypt.so 进行 stat 操作: 没有那个文件或目录
        libcurl.so.4 -> libcurl.so.4.1.1

军哥运维代购:http://shop63846532.taobao.com/

发表于 2016-11-17 19:44:31 | 显示全部楼层

rm -rf /usr/local/lib/libcurl* 后yum应该就正常了
 楼主| 发表于 2016-11-22 13:04:17 | 显示全部楼层

在大神的帮助下,解决了

[ 本帖最后由 kobe 于 2016-11-22 13:08 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-11-22 13:05:46 | 显示全部楼层

回复 6# 的帖子


感谢您的帮助,已经成功安装,谢谢
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-4-21 11:21:41 | 显示全部楼层

find / -name libcurl.so.4

/usr/lib/x86_64-linux-gnu/libcurl.so.4

ldconfig -v | grep libcurl

/sbin/ldconfig.real: Can't stat /usr/local/mysql/lib: No such file or directory
/sbin/ldconfig.real: Path `/usr/local/lib' given more than once
/sbin/ldconfig.real: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/usr/local/lib' given more than once
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/lib' given more than once
/sbin/ldconfig.real: Path `/usr/lib' given more than once
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.27.so is the dynamic linker, ignoring

        libcurl.so.4 -> libcurl.so.4.5.0
        libcurl-gnutls.so.4 -> libcurl-gnutls.so.4.5.0

这个怎么解决?

军哥运维代购:http://shop63846532.taobao.com/

发表于 2019-4-21 11:22:11 | 显示全部楼层



licess 发表于 2016-11-17 19:44
rm -rf /usr/local/lib/libcurl* 后yum应该就正常了

find / -name libcurl.so.4

/usr/lib/x86_64-linux-gnu/libcurl.so.4

ldconfig -v | grep libcurl

/sbin/ldconfig.real: Can't stat /usr/local/mysql/lib: No such file or directory
/sbin/ldconfig.real: Path `/usr/local/lib' given more than once
/sbin/ldconfig.real: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/usr/local/lib' given more than once
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/lib' given more than once
/sbin/ldconfig.real: Path `/usr/lib' given more than once
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.27.so is the dynamic linker, ignoring

        libcurl.so.4 -> libcurl.so.4.5.0
        libcurl-gnutls.so.4 -> libcurl-gnutls.so.4.5.0

这个怎么解决?
发表于 2019-4-21 13:00:26 | 显示全部楼层

liu123 发表于 2019-4-21 11:22
find / -name libcurl.so.4

/usr/lib/x86_64-linux-gnu/libcurl.so.4

先描述具体问题,安装失败的话提供日志,反馈必读有具体说明
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 21:20 , Processed in 0.029318 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表