易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1|回复: 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:9 G4 N' N6 r& U, ]4 o
) B7 ~. g& L8 d, R* G* ^" C
No package 'libxml-2.0' found3 B9 }2 g% d8 r) p2 y+ E
9 R* ~/ P, O# e  f* ]
Consider adjusting the PKG_CONFIG_PATH environment variable if you
0 z* n, p1 @6 O& tinstalled software in a non-standard prefix.
3 t; u: Z9 r( P9 r! f8 z$ z$ L( D
& r  G9 o; `2 W! `. [+ DAlternatively, you may set the environment variables LIBXML_CFLAGS
) C3 g+ f; P" V2 S: p2 Tand LIBXML_LIBS to avoid the need to call pkg-config.
- x7 z* @0 r( w) t- \5 nSee the pkg-config man page for more details.6 r8 u9 r% X  q+ x
) Z+ t5 x. Q8 E
解决办法:
  ?7 `' {" {5 M% k; ] yum install -y libxml2-devel, d/ g1 G. I. ?3 q* o  u! l
Loaded plugins: fastestmirror1 m4 z" _' K* N. j. Z! P2 ~
Loading mirror speeds from cached hostfile
! V6 }  O; _' t, l9 c, e- K * base: ftp.sjtu.edu.cn
9 N" r! s: o) w" `/ ? * extras: ftp.sjtu.edu.cn3 V2 Q* w% C: ]( {) ~2 T
* updates: mirror.lzu.edu.cn
- G0 b: F6 x; I; L7 s# UResolving Dependencies
$ r( C: X0 \- L8 u# K8 h--> Running transaction check: O1 p" H: m1 I/ K& c+ j
---> Package libxml2-devel.x86_64 0:2.9.1-6.el7_9.6 will be installed
. X  D& R/ f. q- r) |--> Processing Dependency: libxml2 = 2.9.1-6.el7_9.6 for package: libxml2-devel-2.9.1-6.el7_9.6.x86_64, b, Z0 m0 b) |, l+ D- j
--> Processing Dependency: xz-devel for package: libxml2-devel-2.9.1-6.el7_9.6.x86_64
0 B+ N: i6 P( r3 O' T--> Running transaction check
* Q7 n5 y0 Z9 l, J3 F7 F* A---> Package libxml2.x86_64 0:2.9.1-6.el7.5 will be updated: j+ e# L; x+ S8 ^* O9 l" u
---> Package libxml2.x86_64 0:2.9.1-6.el7_9.6 will be an update
8 }9 \! A7 T% t" [9 I1 Q) ^---> Package xz-devel.x86_64 0:5.2.2-2.el7_9 will be installed
6 Z* H; \6 v1 n! Y: Y--> Processing Dependency: xz-libs = 5.2.2-2.el7_9 for package: xz-devel-5.2.2-2.el7_9.x86_64- Q; i# V% ?& g7 z$ ^
--> Running transaction check* Y6 L5 I( {: z% h; g- T. f
---> Package xz-libs.x86_64 0:5.2.2-1.el7 will be updated
. A" C8 w1 g( N/ Y--> Processing Dependency: xz-libs = 5.2.2-1.el7 for package: xz-5.2.2-1.el7.x86_642 U! |5 Y3 s4 o, _
---> Package xz-libs.x86_64 0:5.2.2-2.el7_9 will be an update& W& N1 \2 c& g  _4 i4 T- v$ e& k  P
--> Running transaction check
6 i* O" V" G+ X---> Package xz.x86_64 0:5.2.2-1.el7 will be updated0 f3 b. M& G. R+ f9 o
---> Package xz.x86_64 0:5.2.2-2.el7_9 will be an update
+ W3 q! a; F4 u2 w1 i2 Q5 g: P--> Finished Dependency Resolution
- j+ v2 u' i% _+ R! |7 c4 I' S- c: p3 m5 B: ]' n
Dependencies Resolved
3 K- a! l% E. [  W+ C, Y7 V. E0 V) Z0 d; S! A% C2 ]5 W
==================================================================================================================================================================================================================
8 x0 U" d* \: o9 g Package                                              Arch                                          Version                                                  Repository                                      Size) ?  |6 F: h9 v
==================================================================================================================================================================================================================
1 }7 O" `! }" ZInstalling:9 S5 L. y3 z: }, t/ B- K4 s
libxml2-devel                                        x86_64                                        2.9.1-6.el7_9.6                                          updates                                        1.1 M
1 b  K, j# D" i) v0 eInstalling for dependencies:
6 u7 g& U# [: J6 M* p xz-devel                                             x86_64                                        5.2.2-2.el7_9                                            updates                                         46 k
. {2 ]6 R0 t" A2 v% h+ f' x* U, cUpdating for dependencies:- s. W1 [7 H# L! `
libxml2                                              x86_64                                        2.9.1-6.el7_9.6                                          updates                                        668 k! g3 S% G8 X: o
xz                                                   x86_64                                        5.2.2-2.el7_9                                            updates                                        229 k, D4 [+ G) W! G
xz-libs                                              x86_64                                        5.2.2-2.el7_9                                            updates                                        103 k
" w- g& [( Z( }6 K0 O( O: F' b) x5 I8 s
Transaction Summary# M6 b0 t2 w; t& c; ~4 w
==================================================================================================================================================================================================================- l: l. w% h% _1 x/ T$ U4 g7 W
Install  1 Package  (+1 Dependent package)9 i: R+ s! j3 p& w8 Q* `
Upgrade             ( 3 Dependent packages)
' k0 F- G" V" W; Z$ g
) \. c0 c, \* K2 YTotal download size: 2.1 M
& v9 q3 y  d0 [( VDownloading packages:8 {9 {5 B, @7 X
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
! T( n( b( b) z" Y(1/5): xz-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                         | 229 kB  00:00:00     # N* ^0 L# a/ q4 b6 n6 {
(2/5): xz-devel-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                   |  46 kB  00:00:00     1 z- }* M" \$ {1 l; l$ W  y- f
(3/5): xz-libs-5.2.2-2.el7_9.x86_64.rpm                                                                                                                                                    | 103 kB  00:00:00     
) G1 E0 {2 Q* ~) S$ E  q(4/5): libxml2-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                                                  | 668 kB  00:00:00     ! p9 \; R% K4 N0 T5 F# r: ~4 |
(5/5): libxml2-devel-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                                            | 1.1 MB  00:00:00     * V  S0 c3 N7 X, r% X) {2 A' H
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------, v# b% l4 H( v. e; v2 D# S% u
Total                                                                                                                                                                              13 MB/s | 2.1 MB  00:00:00     
6 G7 ]& J+ O0 y- LRunning transaction check
4 u/ M' f  B: O) M  N1 J% qRunning transaction test  j9 N0 i( P: g3 d. [; i6 m5 g. A) t
Transaction test succeeded
4 R2 a" a; G) X4 F, t5 r+ L( sRunning transaction3 t) x. ?. g- L: ^9 o3 t* ~
  Updating   : xz-libs-5.2.2-2.el7_9.x86_64                                                                                                                                                                   1/8
* l1 J) y& s2 b" I- V- @2 ^  Updating   : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                                                 2/8 $ I) \1 M" X4 K, w: v2 }8 M5 }
  Installing : xz-devel-5.2.2-2.el7_9.x86_64                                                                                                                                                                  3/8
- |4 x0 s- D/ \1 O& U  Installing : libxml2-devel-2.9.1-6.el7_9.6.x86_64                                                                                                                                                           4/8
: c" ^; g0 H7 f2 s/ r) D  Updating   : xz-5.2.2-2.el7_9.x86_64                                                                                                                                                                        5/8 9 v# p0 P# M# J" P
  Cleanup    : xz-5.2.2-1.el7.x86_64                                                                                                                                                                          6/8 - M8 F1 q4 o7 a
  Cleanup    : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                                                   7/8 ' ]; O- v5 t1 S; @+ N
  Cleanup    : xz-libs-5.2.2-1.el7.x86_64                                                                                                                                                                     8/8 - K* S# {$ A: O, |. w! ^; q
  Verifying  : libxml2-devel-2.9.1-6.el7_9.6.x86_64                                                                                                                                                           1/8
3 \# T% J* [% |& D3 D" n" U2 y  Verifying  : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                                                 2/8 $ j5 i0 j, m; b' D& {' a- F6 {
  Verifying  : xz-devel-5.2.2-2.el7_9.x86_64                                                                                                                                                                  3/8
$ p  R9 S( n, K" v( A1 F: J  Verifying  : xz-5.2.2-2.el7_9.x86_64                                                                                                                                                                        4/8
% M3 v; f' N. k( _  Verifying  : xz-libs-5.2.2-2.el7_9.x86_64                                                                                                                                                                   5/8
. F% k- Y/ M( K  \  Verifying  : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                                                   6/8
3 W- x, B# T+ r- ~+ [  Verifying  : xz-5.2.2-1.el7.x86_64                                                                                                                                                                          7/8
9 }3 k( ~* c8 i! p* S  Verifying  : xz-libs-5.2.2-1.el7.x86_64                                                                                                                                                                     8/8
+ W/ J" @  M! @$ e4 b7 z, B3 l3 ~$ y/ r
Installed:
6 G" N- v! X) a3 Z( e5 `! ~  libxml2-devel.x86_64 0:2.9.1-6.el7_9.6                                                                                                                                                                          . q) n/ [* R( U0 s! c3 H( x) ]

1 F+ M; x2 J9 e' j: VDependency Installed:
, R# E! h! s, R0 `( Y4 [, K# z! |( h  xz-devel.x86_64 0:5.2.2-2.el7_9                                                                                                                                                                                 & y4 `/ ?) ?+ h; }, I
+ Y6 V% L/ U" s$ e% w7 e" R
Dependency Updated:
( r* C' D% Q9 M. R% o7 n* a. f  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                                       
( l# c. [2 o% y' h1 z! z+ _; F( n; `) i
Complete!% e; s9 A" Z# o4 n: r9 f
, _6 [) C+ W8 e3 E( o

& ^; o3 ~7 V5 X! k& E
 楼主| 发表于 2024-1-2 10:18:09 | 显示全部楼层
再次编译上面的报错消除。) P1 j5 l/ h; H4 X* l. C8 V7 R- w
% p* O" b' E- S2 r% m+ r
checking for libxml-2.0 >= 2.9.0... yes
1 C; [6 T" n6 u, V3 H* Gchecking for OpenSSL support... yes' f* {6 ?0 R' s: J- ^3 b4 s
checking for Kerberos support... no
4 {; V& r; |. B6 L3 |" Nchecking whether to use system default cipher list instead of hardcoded value... no# J2 @2 E5 C; }/ \
checking for openssl >= 1.0.2... yes
& n! z% ^- k; l" P: [checking for RAND_egd... yes
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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