易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 2|回复: 1
收起左侧

编译php时报错configure: error: Package requirements (libxml-2.0 >= 2.9.0) were not

[复制链接]
发表于 2024-1-2 10:16:54 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
configure: error: Package requirements (libxml-2.0 >= 2.9.0) were not met:0 T" s4 k: |* M" y! ^

3 A' ?9 B" y$ {5 T! ^No package 'libxml-2.0' found
5 t& [, K" A( X+ p5 m& v
+ \. w" F9 G! CConsider adjusting the PKG_CONFIG_PATH environment variable if you0 o: q2 S- o" e. ^3 \9 l& t
installed software in a non-standard prefix./ \; M  O; x  p8 T
# ]( D9 C2 A9 |; p* w2 F2 R3 o
Alternatively, you may set the environment variables LIBXML_CFLAGS& E% `8 a9 N% O& H) G8 z
and LIBXML_LIBS to avoid the need to call pkg-config.  b0 w& x7 O- `2 ]0 j1 |$ w+ ?4 g
See the pkg-config man page for more details.
+ j  u. s9 C. b# o" i3 y: |, B! Z- h8 F- n% M. s4 _4 J) G6 t" I8 J: w
解决办法:
/ [  Q5 w$ y; l% d  x+ Z# ^ yum install -y libxml2-devel/ w* z& \$ @0 f& s& t
Loaded plugins: fastestmirror1 [( D; ^, n7 U2 n
Loading mirror speeds from cached hostfile5 W# h) ]/ x8 ?, v- i+ o! i
* base: ftp.sjtu.edu.cn
' t& `/ r' I9 q$ e! W" @ * extras: ftp.sjtu.edu.cn
% q, j/ t' m! L# i * updates: mirror.lzu.edu.cn" @3 ]$ ^/ P, q. z% o5 b5 F: M# g
Resolving Dependencies
1 F! a, k; V+ B--> Running transaction check
+ x/ L: X6 Y2 O$ c: l---> Package libxml2-devel.x86_64 0:2.9.1-6.el7_9.6 will be installed7 R! D2 U. J* r1 `" b! x
--> Processing Dependency: libxml2 = 2.9.1-6.el7_9.6 for package: libxml2-devel-2.9.1-6.el7_9.6.x86_64
7 a) A6 E9 P& W--> Processing Dependency: xz-devel for package: libxml2-devel-2.9.1-6.el7_9.6.x86_64
1 g, S! u) s& \--> Running transaction check
4 v7 j$ t1 E; D( h---> Package libxml2.x86_64 0:2.9.1-6.el7.5 will be updated# b! r% Y0 g7 R% d
---> Package libxml2.x86_64 0:2.9.1-6.el7_9.6 will be an update+ v: L3 @& T- u6 J  v/ U# ?( ~
---> Package xz-devel.x86_64 0:5.2.2-2.el7_9 will be installed1 j/ U* s( G) i; w, [
--> Processing Dependency: xz-libs = 5.2.2-2.el7_9 for package: xz-devel-5.2.2-2.el7_9.x86_649 b+ R1 ?4 Z8 D; p5 t
--> Running transaction check
* J- [! {4 j4 W% t: g---> Package xz-libs.x86_64 0:5.2.2-1.el7 will be updated
; N0 V; g5 V/ o, r( M7 ]- E--> Processing Dependency: xz-libs = 5.2.2-1.el7 for package: xz-5.2.2-1.el7.x86_64+ {; o+ |% m& |: v) F4 O/ D8 _
---> Package xz-libs.x86_64 0:5.2.2-2.el7_9 will be an update1 N! s7 ]+ e1 ~: e( t% u
--> Running transaction check9 e1 a; f: o: k! B' F
---> Package xz.x86_64 0:5.2.2-1.el7 will be updated% d# j3 Y9 r) i5 A3 L
---> Package xz.x86_64 0:5.2.2-2.el7_9 will be an update
2 @5 _: ~' }% E' h--> Finished Dependency Resolution) K& x( O0 s) y8 R

9 T. M: A8 {! B* _* S( A$ S; }; kDependencies Resolved
! O5 }# d5 k0 L) A3 {) y( ~8 a# a! s5 X9 K
==================================================================================================================================================================================================================
  C/ Q4 \5 n8 P1 A% T Package                                              Arch                                          Version                                                  Repository                                      Size
# I4 w/ M/ e, r; R0 {==================================================================================================================================================================================================================! x4 l5 a5 Y% J6 r, A) r7 A
Installing:
+ G) h# c8 V6 j+ [5 O# E- e libxml2-devel                                        x86_64                                        2.9.1-6.el7_9.6                                          updates                                        1.1 M
7 R& b$ |; R6 }# Z, ~Installing for dependencies:
2 Z7 a& P6 z; |# u0 J xz-devel                                             x86_64                                        5.2.2-2.el7_9                                            updates                                         46 k3 @' v9 C) Z) H( d9 Y
Updating for dependencies:
) t$ B! x% P% \& h' z libxml2                                              x86_64                                        2.9.1-6.el7_9.6                                          updates                                        668 k% E% D, |! r4 J4 E- b# o
xz                                                   x86_64                                        5.2.2-2.el7_9                                            updates                                        229 k
" n1 G! a9 `9 `3 P% k2 X1 {& q1 N( C xz-libs                                              x86_64                                        5.2.2-2.el7_9                                            updates                                        103 k( V4 K& Q, p, F7 }5 t* m
2 i0 r: i( {' s( R: b1 _: P( r
Transaction Summary# U0 f  D# P$ r) D* \
==================================================================================================================================================================================================================
+ N, r, z8 C$ r6 S& ~, K9 VInstall  1 Package  (+1 Dependent package)
$ v: I  y& S* e: I+ r9 yUpgrade             ( 3 Dependent packages)3 M9 x# V: Y7 W
1 G" a7 c/ N. U; O% c3 ^: I9 ~
Total download size: 2.1 M& J# J% e# u& c! ~( j/ ~2 A8 q
Downloading packages:$ ~5 k1 D) X$ i8 \. j
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
3 A/ K8 N5 E% P8 X! B  d# q8 i(1/5): xz-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                         | 229 kB  00:00:00     0 P$ a* [4 i8 }7 o* j3 W
(2/5): xz-devel-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                   |  46 kB  00:00:00     ) X9 b, |  i4 [4 ]" T- C
(3/5): xz-libs-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                    | 103 kB  00:00:00     2 w% B/ `+ ^4 I- T
(4/5): libxml2-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                                                  | 668 kB  00:00:00     
" u' y+ A4 P( r& J' I. m(5/5): libxml2-devel-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                                            | 1.1 MB  00:00:00     
1 u8 }* j! B  H4 z------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------$ b- X) _5 I$ K
Total                                                                                                                                                                              13 MB/s | 2.1 MB  00:00:00     
6 z; ^8 h$ d9 C9 M0 @Running transaction check
: B! Q2 v/ J0 ^8 m! {+ DRunning transaction test2 r: b" e4 T3 ~& B) f
Transaction test succeeded" ]4 P* k) O5 c, `0 {8 Y/ }2 E
Running transaction
4 ~) G! m: L8 x' K  Updating   : xz-libs-5.2.2-2.el7_9.x86_64                                                                                                                                                                   1/8
7 f; ^3 T9 \4 l( n  A3 Z# L: A  Updating   : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                                                 2/8
  x) s; j7 m- \- D# A; X  Installing : xz-devel-5.2.2-2.el7_9.x86_64                                                                                                                                                                  3/8
9 Z4 m2 u: a* b- F, ?) S5 U  Installing : libxml2-devel-2.9.1-6.el7_9.6.x86_64                                                                                                                                                           4/8
4 a, ^, B  T& y) j; Y  }4 Q  Updating   : xz-5.2.2-2.el7_9.x86_64                                                                                                                                                                        5/8
8 E9 ?/ m& L% K3 W; B( P  Cleanup    : xz-5.2.2-1.el7.x86_64                                                                                                                                                                          6/8
' f1 Y  {+ K$ S2 r+ o  Cleanup    : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                                                   7/8
% o3 l6 `# X5 d- |  Cleanup    : xz-libs-5.2.2-1.el7.x86_64                                                                                                                                                                     8/8 9 Q4 p* L5 R$ J
  Verifying  : libxml2-devel-2.9.1-6.el7_9.6.x86_64                                                                                                                                                           1/8 ( k5 Q; l# q) f
  Verifying  : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                                                 2/8 % g5 B9 a& m* T/ d! W: X9 i& P6 W
  Verifying  : xz-devel-5.2.2-2.el7_9.x86_64                                                                                                                                                                  3/8
: v) o1 l4 r6 [% }0 {  Verifying  : xz-5.2.2-2.el7_9.x86_64                                                                                                                                                                        4/8 3 z% A+ t9 M* J9 p, O
  Verifying  : xz-libs-5.2.2-2.el7_9.x86_64                                                                                                                                                                   5/8 , K! I7 @8 X% O% J+ ^5 X
  Verifying  : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                                                   6/8 " o9 H2 N& _/ j9 i. ]
  Verifying  : xz-5.2.2-1.el7.x86_64                                                                                                                                                                          7/8
( r; P8 ~& o% \* O7 e8 G  Verifying  : xz-libs-5.2.2-1.el7.x86_64                                                                                                                                                                     8/8
$ y3 R. C# d  k& s8 r2 z3 M* }5 x4 ]# [% Z7 ]  d( W
Installed:& Q' I2 e2 a/ o, Z: Z
  libxml2-devel.x86_64 0:2.9.1-6.el7_9.6                                                                                                                                                                          
% P- I& H5 e4 z, |+ C" C- L
2 P; U/ [' ]) ?/ k$ `+ |Dependency Installed:
9 X8 z- W$ O- Z" Q4 n! e  xz-devel.x86_64 0:5.2.2-2.el7_9                                                                                                                                                                                 
/ k. X- L9 b( U9 A; T* w7 H4 U( Z. o, w# x1 Y' e1 X7 O: }2 l4 |
Dependency Updated:$ o$ F& v5 O9 e: v5 G
  libxml2.x86_64 0:2.9.1-6.el7_9.6                                        xz.x86_64 0:5.2.2-2.el7_9                                        xz-libs.x86_64 0:5.2.2-2.el7_9                                       / M8 V, c- i; ?+ Q2 D6 A

: }' t' q" L7 ^; f+ c  R" i3 l. Y8 Q% CComplete!: x, Z. u, F8 V2 o( Z  j' F, p& |

0 T3 N) ~2 N& n
1 B( K" S/ B0 m& `5 u
 楼主| 发表于 2024-1-2 10:18:09 | 显示全部楼层
再次编译上面的报错消除。, B& r% w, X0 ]/ r: y& R: I  I

. O, R& H6 H! K9 g1 ychecking for libxml-2.0 >= 2.9.0... yes
2 G, K3 r. y6 l) ]checking for OpenSSL support... yes
" c/ [# q* _/ L! o; f# v% ], a% }& ychecking for Kerberos support... no
- o: I/ _' B, }5 schecking whether to use system default cipher list instead of hardcoded value... no. P3 M. f4 v. R7 S3 q2 b4 h
checking for openssl >= 1.0.2... yes$ K. _- m2 ~" I: N3 ]; J/ }
checking for RAND_egd... yes
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:30 , Processed in 0.051917 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表