找回密码
 注册
查看: 5|回复: 1

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-1-2 10:16:54 | 显示全部楼层 |阅读模式
configure: error: Package requirements (libxml-2.0 >= 2.9.0) were not met:
) V  t5 A5 Z' H' ^
3 f7 g' `! K. H# J7 B+ fNo package 'libxml-2.0' found9 W7 G8 E) |+ e5 I! L  q# [
& D) }" [+ L$ P4 D. x) h) X8 v
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7 }+ x  \3 R* ]& K+ M& u0 Kinstalled software in a non-standard prefix.( L! @* Q/ k# a( q: S

0 F3 @" b' o6 o1 C6 i2 OAlternatively, you may set the environment variables LIBXML_CFLAGS
4 e! T' R2 v( m/ d) G2 B) G4 ]and LIBXML_LIBS to avoid the need to call pkg-config.+ u- r! l& N+ ?; T% ^
See the pkg-config man page for more details.& l% l5 |" t" K7 A7 @
: z5 @; h7 L6 `
解决办法:- ^) `- W4 G. r' T: U3 j9 M6 S$ b
yum install -y libxml2-devel
5 G# A, {9 x, N4 y( y1 \7 VLoaded plugins: fastestmirror
/ J0 ?% }8 Y/ a" z7 F  o- ULoading mirror speeds from cached hostfile
' n1 ^2 _7 j. O5 f3 g4 r * base: ftp.sjtu.edu.cn. Y& J- c+ J4 ]9 I/ M
* extras: ftp.sjtu.edu.cn/ o/ T' _0 ?9 D" J9 u
* updates: mirror.lzu.edu.cn5 Y. t' Q" w7 M( d$ k7 ^! i
Resolving Dependencies% Z( f! r; B. p! _8 {5 U
--> Running transaction check3 ]  I8 L% R& Q% f1 U  I: ^3 q
---> Package libxml2-devel.x86_64 0:2.9.1-6.el7_9.6 will be installed7 R; c% d; M' w/ c, B$ l
--> Processing Dependency: libxml2 = 2.9.1-6.el7_9.6 for package: libxml2-devel-2.9.1-6.el7_9.6.x86_64+ W, [" c: n/ o7 C, P6 x
--> Processing Dependency: xz-devel for package: libxml2-devel-2.9.1-6.el7_9.6.x86_64
8 D4 T/ F% O; t/ I; t3 u. S: b# E--> Running transaction check! G6 G2 p' T2 e! _8 j; m1 W
---> Package libxml2.x86_64 0:2.9.1-6.el7.5 will be updated# a' _- U  `1 v7 s7 T, \. Q& J: h
---> Package libxml2.x86_64 0:2.9.1-6.el7_9.6 will be an update
/ K7 B" l( n/ h* f/ X---> Package xz-devel.x86_64 0:5.2.2-2.el7_9 will be installed1 S4 M' k( n# ^- B' _/ z
--> Processing Dependency: xz-libs = 5.2.2-2.el7_9 for package: xz-devel-5.2.2-2.el7_9.x86_645 ^: h) G7 N- Y, D0 t' w6 u- |  E
--> Running transaction check
1 @: o$ J5 l! g. e+ Z5 `6 I---> Package xz-libs.x86_64 0:5.2.2-1.el7 will be updated
% W/ f7 u+ C) x, q3 P8 @9 F0 ?--> Processing Dependency: xz-libs = 5.2.2-1.el7 for package: xz-5.2.2-1.el7.x86_64
% j6 {5 O9 S% E$ f0 K6 O---> Package xz-libs.x86_64 0:5.2.2-2.el7_9 will be an update
( `4 Z8 o1 X+ e9 p9 O1 H--> Running transaction check0 B4 ]0 u; U8 q) X: E& }% A
---> Package xz.x86_64 0:5.2.2-1.el7 will be updated
7 w+ [% [. Y  J0 b& y( Q4 o! B- A7 S6 t---> Package xz.x86_64 0:5.2.2-2.el7_9 will be an update9 n" o/ b/ _) @( Q* ?, i8 x
--> Finished Dependency Resolution
1 Z# y% s+ k  y+ @5 O- \* o- g8 _9 P" `$ |" ]
Dependencies Resolved0 j. O( W, a; e, v8 S$ r6 U; ]1 m

  R: Z6 K/ x! T) M0 q9 V, ~  U1 b==================================================================================================================================================================================================================( \* w0 I2 F$ S& i
Package                                              Arch                                          Version                                                  Repository                                      Size
! p5 c/ _+ K4 \9 \2 d* Y==================================================================================================================================================================================================================
, |0 |0 s8 b/ R& c1 u2 W1 @: F+ FInstalling:1 x, }6 L( ]% }7 h( Y7 ]" f
libxml2-devel                                        x86_64                                        2.9.1-6.el7_9.6                                          updates                                        1.1 M8 f/ r! g& C; D" E; _3 [
Installing for dependencies:; z( M, N& ^  h$ d+ C/ O; r; [
xz-devel                                             x86_64                                        5.2.2-2.el7_9                                            updates                                         46 k3 B. m) [: L  Y( w7 x; r
Updating for dependencies:
$ c6 Y! \% |' n% T8 L4 N; ] libxml2                                              x86_64                                        2.9.1-6.el7_9.6                                          updates                                        668 k
7 Q$ q4 e( J( n. Q1 i. X! T4 @( n xz                                                   x86_64                                        5.2.2-2.el7_9                                            updates                                        229 k) J) p3 F- m9 g6 k3 o. G, T) V
xz-libs                                              x86_64                                        5.2.2-2.el7_9                                            updates                                        103 k! z$ ~* O. t# H* e# g/ ^: V

# M' G% p6 b+ l: t! iTransaction Summary0 ^  X$ S" B5 Y) P+ T4 v8 W* R
==================================================================================================================================================================================================================
. U* f* J6 Q% t2 rInstall  1 Package  (+1 Dependent package)
3 C6 c7 R; @! h! c- ^Upgrade             ( 3 Dependent packages)5 o& L/ r" X: {) `! F9 V  Y

) N% A: a$ G4 hTotal download size: 2.1 M
. p$ R' V: |+ j# q9 U) ]Downloading packages:* x( W/ K1 L, }3 z) T5 r
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.) A/ Z% M: ~- f5 k: d. Q
(1/5): xz-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                         | 229 kB  00:00:00     ! D8 }9 M7 T: \) i% B' r: X8 O
(2/5): xz-devel-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                   |  46 kB  00:00:00     
( u1 N% H% z' E) P(3/5): xz-libs-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                    | 103 kB  00:00:00     # ^$ W) K) |* x1 j' W8 T* H& d
(4/5): libxml2-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                                                  | 668 kB  00:00:00     # y: K& i/ h1 X2 k- }' n
(5/5): libxml2-devel-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                                            | 1.1 MB  00:00:00     
% S9 {# H: W3 ^8 V* [$ \------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------, b! J6 w6 R9 ~9 F/ Y' a8 ~
Total                                                                                                                                                                              13 MB/s | 2.1 MB  00:00:00     
! f: L' T' |1 ARunning transaction check0 i( X* ~" L! e+ F4 u
Running transaction test
1 o2 f/ Q& h; M* _+ o9 CTransaction test succeeded. {" Q5 e, A1 d9 c  C
Running transaction0 h. z3 L8 L' y5 U
  Updating   : xz-libs-5.2.2-2.el7_9.x86_64                                                                                                                                                                   1/8
4 W; v" Z! n' M* K3 V  Updating   : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                                                 2/8 8 \1 r1 s  w0 N/ g2 A  x" r
  Installing : xz-devel-5.2.2-2.el7_9.x86_64                                                                                                                                                                  3/8 ) @5 C) ?) T0 t, ^' F5 g
  Installing : libxml2-devel-2.9.1-6.el7_9.6.x86_64                                                                                                                                                           4/8
( x# p3 `* L4 r4 i( {  Updating   : xz-5.2.2-2.el7_9.x86_64                                                                                                                                                                        5/8 ) B$ H8 C: e6 A) e8 g
  Cleanup    : xz-5.2.2-1.el7.x86_64                                                                                                                                                                          6/8
2 V( @8 S+ L" ?  Cleanup    : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                                                   7/8
9 p+ f: B3 b/ t7 g  Cleanup    : xz-libs-5.2.2-1.el7.x86_64                                                                                                                                                                     8/8
: {( F2 n# m) @& @. s: C  Verifying  : libxml2-devel-2.9.1-6.el7_9.6.x86_64                                                                                                                                                           1/8
2 C7 g3 I) B2 S& u  Verifying  : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                                                 2/8 # N: n" ^2 x5 S' U
  Verifying  : xz-devel-5.2.2-2.el7_9.x86_64                                                                                                                                                                  3/8
" e- F/ j: [. l9 j0 f+ k5 X  Verifying  : xz-5.2.2-2.el7_9.x86_64                                                                                                                                                                        4/8
. q* r" k1 W% x/ V  Verifying  : xz-libs-5.2.2-2.el7_9.x86_64                                                                                                                                                                   5/8
) d# @2 b4 v3 k6 X; s- R9 u# B  Verifying  : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                                                   6/8 8 H5 r4 w, s0 C' A" `" ]/ Z8 _  c
  Verifying  : xz-5.2.2-1.el7.x86_64                                                                                                                                                                          7/8
( ~8 n0 T  i8 ?! Z0 V  Verifying  : xz-libs-5.2.2-1.el7.x86_64                                                                                                                                                                     8/8 5 r1 a' ?1 U& W) i' q9 w" L
* c4 o( j/ z/ T+ K
Installed:$ x- V, v, c7 {7 L! m  G  w
  libxml2-devel.x86_64 0:2.9.1-6.el7_9.6                                                                                                                                                                          ! D* y: ~8 _, ?: j) ^" g
/ @' }# M0 w- _! t% V; p2 j( C
Dependency Installed:- T. @" ?( g0 @: E. X
  xz-devel.x86_64 0:5.2.2-2.el7_9                                                                                                                                                                                 & p7 t. `6 F6 S) O5 S$ j+ x' u
, w3 Q$ j( C% \1 D/ F
Dependency Updated:
6 L! r$ ?# h& K" Z* |$ B  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                                       1 M' H7 {1 `* q4 g3 ^0 Q
/ ^2 }' }% L. Z( m  C, i; t) q
Complete!
6 l- Q$ X# K" B0 D% W, d" I" p
3 E8 _  f' L- c& Q. {) `. W- z# q8 _) }

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-1-2 10:18:09 | 显示全部楼层
再次编译上面的报错消除。
0 m3 _& \0 t% z3 F% `- a3 \* q+ k
$ u; ~: V; ~  ]: Pchecking for libxml-2.0 >= 2.9.0... yes% F4 U& V5 W6 s3 m. {: o2 D
checking for OpenSSL support... yes) \/ {$ v$ R# }7 @# M
checking for Kerberos support... no
" O3 b' i2 E8 T# R" ]5 Z; [checking whether to use system default cipher list instead of hardcoded value... no( U1 i& {7 H; E6 J
checking for openssl >= 1.0.2... yes
9 B6 W& w( r3 q5 y5 O/ z# achecking for RAND_egd... yes
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:46 , Processed in 0.022318 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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