|
|
楼主 |
发表于 2017-10-17 15:50:47
|
显示全部楼层
# yum install -y libldap_*. b; T) A3 k% f% x4 P
There was a problem importing one of the Python modules+ [# w$ n- c8 @' E- I5 c
required to run yum. The error leading to this problem was:; B/ c- m+ K4 {
9 R/ |$ f. _6 C3 B6 |2 q
libldap-2.4.so.2: cannot open shared object file: No such file or directory/ y% I" l. A1 h
3 x5 V& {$ C0 p. x( f
Please install a package which provides this module, or
8 ]* s# F3 h4 ` h; F; `4 G# cverify that the module is installed correctly./ M0 W2 P7 \9 l0 |/ G2 W' q+ a3 H
, Z6 d9 r$ a8 `It's possible that the above module doesn't match the
& z8 b$ I8 D5 j+ K" M7 ?* Ucurrent version of Python, which is: v/ f, t) M, t5 g3 }' C! i( W
2.6.6 (r266:84292, Nov 22 2013, 12:16:22)
e: q2 L* b0 @3 {7 p- c$ t, S[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
5 D6 K) b$ P6 Q+ x% l; s6 i( F, Y: b- f
If you cannot solve this problem yourself, please go to 5 `0 q+ x9 H( {* r0 X
the yum faq at:- G+ A# _ q0 p& m( R% J8 @5 A
http://yum.baseurl.org/wiki/Faq
: p% w8 r' c$ l$ I- r& D ) x5 m1 n3 q2 j2 C2 U9 g
" i4 p- ` Q/ V" _& P1 }/ x2 ~6 c o2 ~
我就把这个文件夹删了,并且把openldap相关包都卸载了,再准备重新yum安装的时候就出现了这个问题。 : {3 h$ ^6 o# N' \% H' r3 _
解决办法: 6 {: i- x- V- V e
从镜像文件里面将相关包都上传到服务器上,然后rpm进行安装。! j& K3 R+ o6 ^6 c7 }
Q* N' B1 B$ m; Bopenldap-servers-2.4.23-32.el6_4.1.x86_648 `: \) {: C* n7 s4 k
openldap-clients-2.4.23-32.el6_4.1.x86_64# k( J) c9 P9 W/ S% [" ~
compat-openldap-2.3.43-2.el6.x86_64
! l: V& N% c" M; K/ R) dopenldap-devel-2.4.23-32.el6_4.1.x86_64
' s5 j8 m5 ~9 m! j5 {openldap-2.4.23-32.el6_4.1.x86_64
8 g1 l) l, A5 i5 @# C; prpm -ivh --nodeps ***包名 |
|