找回密码
 注册
查看: 8|回复: 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:
( ^: O1 g1 j8 L
! t& S# U2 N9 z% N. U1 y: _No package 'libxml-2.0' found% t1 g2 W* {3 v1 E
' J% f$ u. u/ y. g
Consider adjusting the PKG_CONFIG_PATH environment variable if you
$ d, {0 N" ~" minstalled software in a non-standard prefix.
# x! k5 S; [2 R
) Y( u+ J4 v  j3 p2 JAlternatively, you may set the environment variables LIBXML_CFLAGS1 D& d  J6 G+ ?; ?# a
and LIBXML_LIBS to avoid the need to call pkg-config.+ e6 d; V7 [* |+ d) d  a  t
See the pkg-config man page for more details.
. u: E; N. S& ~2 X( H. m; @0 V- |9 V2 p3 M0 L2 p8 @0 T8 A/ @+ i
解决办法:
3 [1 S* L! @2 r4 B7 Z yum install -y libxml2-devel
  e# Q# Y3 A/ P. |" j% o( M* pLoaded plugins: fastestmirror
( \0 x4 |0 g4 MLoading mirror speeds from cached hostfile
* J! d( l  B& `. B9 X7 y5 C5 g * base: ftp.sjtu.edu.cn8 ~5 `4 W8 U- J% |7 u
* extras: ftp.sjtu.edu.cn8 g: o. o" X+ J2 O6 g
* updates: mirror.lzu.edu.cn9 u/ g. z. o* ^: Q
Resolving Dependencies- \1 q# B: q# h/ e2 C- y7 C
--> Running transaction check
" _6 I) H& \+ x  ]$ @---> Package libxml2-devel.x86_64 0:2.9.1-6.el7_9.6 will be installed; f( Z) O3 ?! V) `; f
--> Processing Dependency: libxml2 = 2.9.1-6.el7_9.6 for package: libxml2-devel-2.9.1-6.el7_9.6.x86_64/ A. e0 I$ f. j; d) f, a. k
--> Processing Dependency: xz-devel for package: libxml2-devel-2.9.1-6.el7_9.6.x86_642 K5 M5 ?9 Z3 I6 l% e7 q
--> Running transaction check3 R! s# R6 @- K# q. z$ Z! W/ C
---> Package libxml2.x86_64 0:2.9.1-6.el7.5 will be updated+ o$ P% a+ t" ~' n
---> Package libxml2.x86_64 0:2.9.1-6.el7_9.6 will be an update
/ Q- N+ L: U. m---> Package xz-devel.x86_64 0:5.2.2-2.el7_9 will be installed: S# N* x6 h- I3 j5 b8 a; h+ Q
--> Processing Dependency: xz-libs = 5.2.2-2.el7_9 for package: xz-devel-5.2.2-2.el7_9.x86_645 O/ N& @9 u3 T4 ^( v
--> Running transaction check( k0 V) H( q) a5 j; _  S5 I; P
---> Package xz-libs.x86_64 0:5.2.2-1.el7 will be updated+ Z/ Q0 ^- s7 r: m$ u  A) M) @
--> Processing Dependency: xz-libs = 5.2.2-1.el7 for package: xz-5.2.2-1.el7.x86_648 G8 M1 J9 t) s
---> Package xz-libs.x86_64 0:5.2.2-2.el7_9 will be an update# x4 V3 g& J) y6 Q9 k* c
--> Running transaction check6 L, Q5 a2 i' T; _
---> Package xz.x86_64 0:5.2.2-1.el7 will be updated
' t' i* c- Q) r" o' @---> Package xz.x86_64 0:5.2.2-2.el7_9 will be an update
9 [3 V. Y' m* z4 ^  ?--> Finished Dependency Resolution2 F8 n% c  {: D* u( E. K

7 h8 F2 v9 j: i/ t5 M9 cDependencies Resolved
/ E7 D! E1 W) y3 h5 Q1 n* f* R$ c; @$ C' z8 F& c+ c
==================================================================================================================================================================================================================
/ T. |' j! Y3 W- O/ W8 X Package                                              Arch                                          Version                                                  Repository                                      Size
, `3 B! Q& h2 T+ p3 N7 {& [==================================================================================================================================================================================================================! c+ ~& d. n3 W  `
Installing:
( v$ l. X; ~$ \7 @& l libxml2-devel                                        x86_64                                        2.9.1-6.el7_9.6                                          updates                                        1.1 M' G6 N; c$ ~7 k1 H  ~
Installing for dependencies:/ ^0 i! `! D/ D# ]) V9 L/ O, |9 H
xz-devel                                             x86_64                                        5.2.2-2.el7_9                                            updates                                         46 k
; e# x1 s/ n3 k3 t7 nUpdating for dependencies:
8 L' R8 I2 x; r9 E+ O libxml2                                              x86_64                                        2.9.1-6.el7_9.6                                          updates                                        668 k" U) d# ~2 T" ^' o) `" L
xz                                                   x86_64                                        5.2.2-2.el7_9                                            updates                                        229 k$ U7 h8 O4 L+ D, M
xz-libs                                              x86_64                                        5.2.2-2.el7_9                                            updates                                        103 k6 C- G: e  N, g3 t  s" n" J
% u# z  ?5 d$ |$ B& V
Transaction Summary4 A4 \2 H" |0 T
==================================================================================================================================================================================================================2 H  ?# }) x( }/ V3 `
Install  1 Package  (+1 Dependent package)
+ U; M( m; m: ^/ c0 _Upgrade             ( 3 Dependent packages)
  q9 l6 u2 Y; D9 o  N$ o$ G+ B7 V! h  ~8 \7 R
Total download size: 2.1 M
- P9 ?) y3 ?2 q* iDownloading packages:
- c. W% O: c$ Z2 tDelta RPMs disabled because /usr/bin/applydeltarpm not installed.
: ~- Q. W8 S: \. I(1/5): xz-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                         | 229 kB  00:00:00     & l) ~2 Z) u1 A( C3 _( B3 j
(2/5): xz-devel-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                   |  46 kB  00:00:00     : I( n2 s% l5 L. M  o0 T  x. k( ?
(3/5): xz-libs-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                    | 103 kB  00:00:00     
: l! y: {9 J8 D) C/ y/ n/ b& K$ ^(4/5): libxml2-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                                                  | 668 kB  00:00:00     
2 i0 p% o. F6 j& A(5/5): libxml2-devel-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                                            | 1.1 MB  00:00:00     
' U$ p& G& S0 e------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
* y7 \6 d, Q: D7 ]( yTotal                                                                                                                                                                              13 MB/s | 2.1 MB  00:00:00       k1 Z9 A# R* T2 [* Y
Running transaction check
- e; `9 r! ~/ A2 C$ @Running transaction test
# ?) [5 e- C: l2 i) lTransaction test succeeded
4 Z8 |2 B: k& \, F4 s; ^  g, TRunning transaction
6 a3 T6 ~% B3 e6 L% j8 E; {- V  Updating   : xz-libs-5.2.2-2.el7_9.x86_64                                                                                                                                                                   1/8
; N4 B: j4 }1 s& U+ Y0 s, [  Updating   : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                                                 2/8 ; G! M- `' `& ^# w
  Installing : xz-devel-5.2.2-2.el7_9.x86_64                                                                                                                                                                  3/8
3 ]% i& ~, q+ e( U7 E  Installing : libxml2-devel-2.9.1-6.el7_9.6.x86_64                                                                                                                                                           4/8
: m9 V: H8 o9 C  Updating   : xz-5.2.2-2.el7_9.x86_64                                                                                                                                                                        5/8
/ N9 m  L* T( l" f  Cleanup    : xz-5.2.2-1.el7.x86_64                                                                                                                                                                          6/8
8 h) V: m+ |8 y0 y  [  @  Cleanup    : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                                                   7/8 * O1 t: ~9 \- Z/ [# ~. R0 Z. l
  Cleanup    : xz-libs-5.2.2-1.el7.x86_64                                                                                                                                                                     8/8 % i4 l! ^2 L* M) g+ _7 z
  Verifying  : libxml2-devel-2.9.1-6.el7_9.6.x86_64                                                                                                                                                           1/8 % ]! b0 Q" U8 W% I8 K2 l
  Verifying  : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                                                 2/8 " _6 i, W! ~4 c9 I* h
  Verifying  : xz-devel-5.2.2-2.el7_9.x86_64                                                                                                                                                                  3/8 8 H- C6 l$ O  P2 u' G6 w
  Verifying  : xz-5.2.2-2.el7_9.x86_64                                                                                                                                                                        4/8
% z" B- z  C" l% f2 @4 g0 E1 X9 S  Verifying  : xz-libs-5.2.2-2.el7_9.x86_64                                                                                                                                                                   5/8
4 j& m! p: V5 [, L) j3 d  Verifying  : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                                                   6/8 $ ?* q* D' N" A) ^
  Verifying  : xz-5.2.2-1.el7.x86_64                                                                                                                                                                          7/8 " d- p$ s+ ?2 `) ?
  Verifying  : xz-libs-5.2.2-1.el7.x86_64                                                                                                                                                                     8/8
  R6 ]$ q0 Y( v9 I  Y; j9 N# \# o7 \& X0 _8 n4 f; r* {  G
Installed:% K( K( _3 o! \
  libxml2-devel.x86_64 0:2.9.1-6.el7_9.6                                                                                                                                                                          # y1 I( p* `. }8 J/ W) P

% @, E; r# G1 ~0 ^/ H7 f# g3 RDependency Installed:
. ~- i3 F0 X- N4 e6 J- I  xz-devel.x86_64 0:5.2.2-2.el7_9                                                                                                                                                                                 # T/ Y9 g2 S" A1 c

1 z9 E: [; I7 i7 [! l7 HDependency Updated:
+ ]# O0 w8 L6 P3 X5 T: S+ F: ?5 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                                       2 N5 a7 F$ P+ ~/ z* A. D8 s  e

( s0 n" f- i4 o$ t. ]8 H/ v* a3 a$ YComplete!
' d. b) u/ w  A/ o- k
  K. k8 z: s7 Y- w2 S4 X+ l* [. P# c/ A5 Y. k0 ^: i% S% X

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-1-2 10:18:09 | 显示全部楼层
再次编译上面的报错消除。0 q' g; U$ ]& \! g9 e# p
5 E; ^0 T. S* A
checking for libxml-2.0 >= 2.9.0... yes, k7 A8 K. m; Z: G; ?1 r
checking for OpenSSL support... yes  Z* `$ F. p" a" P" V3 B
checking for Kerberos support... no6 K$ [" v. l$ I' X
checking whether to use system default cipher list instead of hardcoded value... no
, K- M% `9 \% k0 i( `! Ychecking for openssl >= 1.0.2... yes$ _+ E$ |: E% J& A
checking for RAND_egd... yes
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 03:05 , Processed in 0.017181 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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