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

楼主 |
发表于 2017-10-17 15:50:47
|
显示全部楼层
# yum install -y libldap_*
2 j8 K4 \' V: i: r" S" y2 V% u* cThere was a problem importing one of the Python modules* O: _) x- B- d( o
required to run yum. The error leading to this problem was:
7 b$ |8 o$ r, l8 z1 {# S0 a- Z ^7 f4 V/ M- T8 A3 w" ?, Z
libldap-2.4.so.2: cannot open shared object file: No such file or directory
% Q3 @7 ^7 S5 b6 `! H$ _. _ S9 q& n {+ E. t. Z# f" D
Please install a package which provides this module, or
1 E4 N, s1 @; Q% l- d1 rverify that the module is installed correctly.
$ T! ?" L+ m% O2 X
9 ~1 r" R8 ]1 i0 P' A LIt's possible that the above module doesn't match the2 l) m& m8 ^- ]0 ^: n6 y. Y' G! C
current version of Python, which is:
- e" R8 ?6 Q5 b' G2.6.6 (r266:84292, Nov 22 2013, 12:16:22)
8 E4 ^ B2 M+ \$ h" M[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
" f7 Q7 X. U2 z# v3 [7 V2 Q1 f* T+ J7 v. V( o& S- f
If you cannot solve this problem yourself, please go to
3 h6 N6 h0 X, J: B; z+ Nthe yum faq at:9 j6 a, m" z1 `0 R
http://yum.baseurl.org/wiki/Faq3 r5 N3 k+ n+ y8 A) b/ e' g. M0 x
3 j; {5 V# N; c" M3 e
/ {9 `' n j! C4 G5 [! V我就把这个文件夹删了,并且把openldap相关包都卸载了,再准备重新yum安装的时候就出现了这个问题。
. J- G c ^) b& r5 r" k7 p6 I8 g* T解决办法:
( J: j/ r3 C) p/ a7 L从镜像文件里面将相关包都上传到服务器上,然后rpm进行安装。7 s# ~# ~3 Q3 {. a' F+ _9 k' o
: r% u9 ?- J, j9 e. uopenldap-servers-2.4.23-32.el6_4.1.x86_64
7 f" T% E5 G1 f u/ G- fopenldap-clients-2.4.23-32.el6_4.1.x86_64
) S# F2 D2 b$ ]/ i8 xcompat-openldap-2.3.43-2.el6.x86_644 m. n4 y5 B1 N, c* T2 @5 O
openldap-devel-2.4.23-32.el6_4.1.x86_64
6 s6 V4 f& N* U3 N( C. lopenldap-2.4.23-32.el6_4.1.x86_64
5 H" }; ^, ?1 o- K6 _7 wrpm -ivh --nodeps ***包名 |
|