|
|
楼主 |
发表于 2017-10-17 15:50:47
|
显示全部楼层
# yum install -y libldap_*' G" _/ k9 O, P
There was a problem importing one of the Python modules* o% i% G8 M' p& D, I5 i& z1 R( W; ^
required to run yum. The error leading to this problem was:0 A) @5 W2 r+ q) S! K; J
4 L: R1 w( @! D0 c, E/ B libldap-2.4.so.2: cannot open shared object file: No such file or directory
" x0 ]6 Z; V9 b" I: z1 i8 q; p$ [2 y$ G4 W% D
Please install a package which provides this module, or
/ j5 B5 V; y0 ]0 C) A& B& ]verify that the module is installed correctly.
* j7 E+ q8 p q
1 l$ U3 S0 F2 N- w& @ c' cIt's possible that the above module doesn't match the5 q* W X1 I7 s) n! E7 c
current version of Python, which is:
* }, _4 q0 y/ j9 }6 u$ R1 m2.6.6 (r266:84292, Nov 22 2013, 12:16:22) m- ^ n6 @8 g. m; r+ j" v7 _
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]# u8 _; v" z3 j; f& {) j, `
% t _( a% _# N
If you cannot solve this problem yourself, please go to + Y5 a5 h5 C! r( Y, c% |) l
the yum faq at:
% j7 l/ T8 g4 B- o8 `5 V, ? http://yum.baseurl.org/wiki/Faq6 b1 b# N- e! V- A
' p! i0 B9 E6 L( Z! F* r- \5 |' a
我就把这个文件夹删了,并且把openldap相关包都卸载了,再准备重新yum安装的时候就出现了这个问题。
7 e1 L. N0 B& L' [/ C解决办法:
+ D- Q9 I6 M+ ]/ u1 A# L从镜像文件里面将相关包都上传到服务器上,然后rpm进行安装。! W! r! H) _1 u
: ]& J/ i; Y8 q
openldap-servers-2.4.23-32.el6_4.1.x86_64
/ l% i0 i( [7 ` T! l& dopenldap-clients-2.4.23-32.el6_4.1.x86_645 e- I k5 Q/ L; \1 _: V( e# D
compat-openldap-2.3.43-2.el6.x86_64$ R% u) P# f9 r" Z
openldap-devel-2.4.23-32.el6_4.1.x86_64, p$ Z ]1 E9 v( d! ]
openldap-2.4.23-32.el6_4.1.x86_64. M$ |8 W, y; I! N; n
rpm -ivh --nodeps ***包名 |
|