centos使用yum安装软件的时候出现了undefined symbol: CRYPTO_set_locking_callback

简介:

1、问题

在CentOS下使用yum安装软件,结果出现了下面的错误提示

# yum install
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/lib/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:37:14) 
[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

2、查看当前的环境变量

# env | grep LD
OLDPWD=/root
LD_LIBRARY_PATH=:/usr/local/lib

运行时链接库的目录被我设置成了这个/usr/local/lib。

取消这个运行时链接库试试:

# export -n LD_LIBRARY_PATH

# yum install busybox
已加载插件:fastestmirror
设置安装进程
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.opencas.cn
* updates: mirror.bit.edu.cn
base | 3.7 kB 00:00 
extras | 3.4 kB 00:00 
updates | 3.4 kB 00:00 
解决依赖关系
--> 执行事务检查
---> Package busybox.i686 1:1.15.1-21.el6_6 will be 安装
--> 完成依赖关系计算

.

.

.

果然是这个链接库的问题。

3、分析:

应该是yum依赖python的模块的模块。但是在进行加载的时候,找错目录了,结果就加载错了模块的链接库。

 


本文转自郝峰波博客园博客,原文链接:http://www.cnblogs.com/fengbohello/p/4907096.html,如需转载请自行联系原作者


相关文章
|
3月前
|
Linux 应用服务中间件 网络安全
CentOS7搭建本地离线局域网yum源(Httpd/Nginx+yum)
CentOS7搭建本地离线局域网yum源(Httpd/Nginx+yum)
429 0
|
3天前
|
资源调度 前端开发
编译第三方前端项目时候出现Syntax Error: TypeError: Cannot set properties of undefined (setting ‘parent‘)
编译第三方前端项目时候出现Syntax Error: TypeError: Cannot set properties of undefined (setting ‘parent‘)
19 0
|
1月前
|
关系型数据库 MySQL Linux
CentOS 7.4下使用yum安装MySQL5.6
CentOS 7.4下使用yum安装MySQL5.6
81 0
|
7天前
|
Linux
CentOS 7 配置yum阿里源 (三步即可)
CentOS 7 配置yum阿里源 (三步即可)
|
20天前
|
Linux
centos 6.5安装yum
centos 6.5安装yum
52 0
|
20天前
|
Linux
CentOS6使用第三方YUM源(EPEL、RPMForge和RPMFusion)
CentOS6使用第三方YUM源(EPEL、RPMForge和RPMFusion)
|
22天前
|
存储 Linux 网络安全
centos7使用yum网络安装
这些是使用Yum进行网络安装的基本步骤。根据你的需求,你可以重复步骤3和4来安装其他软件包。请注意,执行Yum操作需要root或具有sudo权限的用户。
48 1
|
1月前
|
缓存 Linux
修改CentOS默认yum源为阿里镜像源
修改CentOS默认yum源为阿里镜像源
225 0
|
1月前
|
缓存 Linux
linux centos7 挂载本地iso yum源
linux centos7 挂载本地iso yum源
91 0
|
1月前
|
关系型数据库 MySQL Linux
Centos7 yum安装lAMP 环境 php版本5.6.38 mysql版本5.7.22
Centos7 yum安装lAMP 环境 php版本5.6.38 mysql版本5.7.22
28 0