|
|
楼主 |
发表于 2017-10-17 15:50:47
|
显示全部楼层
# yum install -y libldap_*( t6 K- [. e% F% K) s2 E0 A
There was a problem importing one of the Python modules
" J E0 Z9 L7 Y2 r% \/ }8 @required to run yum. The error leading to this problem was:
/ V. q! H: a( o7 ?2 @
% D- R- b; x5 ?* w1 }( @/ ? libldap-2.4.so.2: cannot open shared object file: No such file or directory
) l$ \7 r1 x0 n9 q" x+ J, A8 S( s c" G9 R/ k. \2 t
Please install a package which provides this module, or6 E5 W6 t, f& n
verify that the module is installed correctly.1 F9 p4 c X5 D2 Z- j2 |
8 `. w/ w. D& p2 J# E T
It's possible that the above module doesn't match the
' z3 r% N# Y3 Q. D" c2 Hcurrent version of Python, which is:. q7 o, A5 k2 [6 D2 L
2.6.6 (r266:84292, Nov 22 2013, 12:16:22)
: Q) X: r: O+ L3 y* }% E' E[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]( E+ _6 C8 K1 C$ u$ x' X
$ ~3 D; p Q* C7 y
If you cannot solve this problem yourself, please go to
6 P- g) j& J4 |% r7 p8 H4 P- pthe yum faq at:
! E9 i6 o# |( u4 X, o- P! B7 A7 S http://yum.baseurl.org/wiki/Faq+ b% m* i8 t! Z1 q
3 I7 b3 y( x+ C/ j. V0 N# o5 s2 L6 @3 t5 a# q( i1 l
我就把这个文件夹删了,并且把openldap相关包都卸载了,再准备重新yum安装的时候就出现了这个问题。
# _& R# V$ v4 b解决办法: 3 g1 k7 ^3 J2 z* ?
从镜像文件里面将相关包都上传到服务器上,然后rpm进行安装。2 ^! u. C; E' g
1 W! j T3 f4 h$ E
openldap-servers-2.4.23-32.el6_4.1.x86_64' v$ F+ o( C2 U5 s
openldap-clients-2.4.23-32.el6_4.1.x86_64& a4 M, z1 \+ C6 f9 U
compat-openldap-2.3.43-2.el6.x86_64
5 l" V) f& W$ q% Topenldap-devel-2.4.23-32.el6_4.1.x86_64, k# W5 W) [ J; L U0 _# Z
openldap-2.4.23-32.el6_4.1.x86_64
6 |- X4 \3 f: j3 v; U' W$ f" urpm -ivh --nodeps ***包名 |
|