- 积分
- 16844
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2017-10-17 15:50:47
|
显示全部楼层
# yum install -y libldap_*7 g* N1 d, I* \1 X( p
There was a problem importing one of the Python modules9 W' v" b* W( I E: Y
required to run yum. The error leading to this problem was: A; o: Q! v2 s1 `
4 s$ j B9 k+ `; ~9 Z' [
libldap-2.4.so.2: cannot open shared object file: No such file or directory
2 R: v, c! d- j" \- |
, o* M* a% Z1 Q8 r, q% HPlease install a package which provides this module, or" ]' R9 N* i, @7 j V6 n* x
verify that the module is installed correctly.6 P" n1 X. {! q2 I6 q5 n w
/ Z8 X: h: G5 p- ?1 ]# y: [' cIt's possible that the above module doesn't match the
. t+ H p: @( x( u5 f1 F6 vcurrent version of Python, which is:
( w `+ V; l" B) b2 x# i5 N) ~3 U2.6.6 (r266:84292, Nov 22 2013, 12:16:22)
( w0 }% u+ A0 T7 T' ~[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]% X+ i2 f4 H/ I8 n
, `1 v2 m0 D( ~If you cannot solve this problem yourself, please go to # v# I4 J3 b! c2 N7 g; }2 d
the yum faq at:9 Q, G0 Z, M9 D a% E0 r
http://yum.baseurl.org/wiki/Faq( s# I" o9 ^& q9 X5 _, m/ g
5 h% c; j# _* n* l& \3 N& p; e/ J# d. y1 W/ e
我就把这个文件夹删了,并且把openldap相关包都卸载了,再准备重新yum安装的时候就出现了这个问题。
! k4 A! Z: v. C( Z' p& G解决办法:
6 I' z- Y% D' O2 v从镜像文件里面将相关包都上传到服务器上,然后rpm进行安装。
. o1 Q" j' A( N0 N! A9 E" C2 J
! x1 d% }8 a9 f: vopenldap-servers-2.4.23-32.el6_4.1.x86_64
8 y. ]3 ^" J2 l$ t+ r: y/ h+ ]" xopenldap-clients-2.4.23-32.el6_4.1.x86_649 h+ ?6 t$ U# ]8 R/ s' K2 w) ]
compat-openldap-2.3.43-2.el6.x86_643 @5 B3 \& X- I) u* a) Z& W) |
openldap-devel-2.4.23-32.el6_4.1.x86_64
' O9 Z; ^5 c6 B0 l: A3 nopenldap-2.4.23-32.el6_4.1.x86_647 O7 E' ~) s' @ @) S+ Y, p9 y, U/ H. Q
rpm -ivh --nodeps ***包名 |
|