- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
php 编译enchant 模块报错解决configure: error: Package requirements (enchant >= 1.4.2) were not met: No package 'enchant' found* b1 W: E( r, T/ ]: a
; M' q5 y# [: k9 m" L0 S6 C解决过程:
" E- p5 F& e J[root@ipam enchant]# pkg-config --modversion enchant3 `) ^8 R. c9 [# b& v
Package enchant was not found in the pkg-config search path. o! {+ S3 F, U7 u
Perhaps you should add the directory containing `enchant.pc' j$ C+ i7 m% u' a" @# Y
to the PKG_CONFIG_PATH environment variable
5 K) u# o. E' p* S6 DNo package 'enchant' found
: [& d/ s. f5 ][root@ipam enchant]# pkg-config --modversion enchant-2
+ e" W- v7 ] T7 U7 [' OPackage enchant-2 was not found in the pkg-config search path.
/ {- e- i% r! v. zPerhaps you should add the directory containing `enchant-2.pc'( M5 H* ^. }! y. D% V( n
to the PKG_CONFIG_PATH environment variable# u/ t6 @- c& _. K( f
No package 'enchant-2' found8 s$ D' s" B+ x1 T
[root@ipam enchant]# pacman -Ss enchant
, m, m- i4 M# g0 b* o-bash: pacman: command not found8 n) R$ T% ]# N5 O8 S( V: n' t
[root@ipam enchant]# yum install -y enchant
8 z( @) M2 _' F& Q9 TLoaded plugins: fastestmirror3 t" S/ C8 `* L4 g) m5 u" ?
Loading mirror speeds from cached hostfile3 I1 O! T2 ^& N1 G7 K9 C9 N2 Q
Resolving Dependencies
9 s' Z5 G- {) K) ~5 }--> Running transaction check& }6 g1 c4 a- X1 Y/ Z" `
---> Package enchant.x86_64 1:1.6.0-8.el7 will be installed
' ?3 @; q j5 l. [" w5 N" K g--> Processing Dependency: libhunspell-1.3.so.0()(64bit) for package: 1:enchant-1.6.0-8.el7.x86_64; c$ }# p2 e; h- [& ]% D( _! o
--> Running transaction check
9 z, W6 Z- u7 f- c---> Package hunspell.x86_64 0:1.3.2-16.el7 will be installed( d4 T0 a0 ^" N& p
--> Processing Dependency: hunspell-en-US for package: hunspell-1.3.2-16.el7.x86_64( T9 _" [7 J; p" F
--> Running transaction check' z; `; H/ j2 o/ W
---> Package hunspell-en-US.noarch 0:0.20121024-6.el7 will be installed
' _5 K' Q, e0 e; h9 ]--> Finished Dependency Resolution
4 V6 t @2 {3 b/ H1 ~8 L0 \* ]$ Q1 j
Dependencies Resolved
) K0 x/ e9 z! z' v6 B
8 T$ A2 ^5 S3 _7 y8 B: N0 z=============================================================================================================================================================================! k! E, m% z! O
Package Arch Version Repository Size
& g8 \5 r6 U9 r- m' p2 \& \) V=============================================================================================================================================================================
, B$ \8 I% v9 d! dInstalling:+ k/ i6 P$ z* H
enchant x86_64 1:1.6.0-8.el7 base 55 k/ M2 K7 c* o. B
Installing for dependencies:
" y; n6 X- T) m0 t( O0 { hunspell x86_64 1.3.2-16.el7 base 223 k) u: z& m' k1 m. e0 a
hunspell-en-US noarch 0.20121024-6.el7 base 190 k
2 C( h% H4 j9 A, f8 h3 E
5 i5 l; Z3 D" g3 P) k vTransaction Summary
6 b1 u4 o. p# ]& {0 {. v( `# B=============================================================================================================================================================================
# U: e, _1 N# CInstall 1 Package (+2 Dependent packages)9 o! `9 r( X |' q+ s
. w$ k% f& ], U8 s1 \
Total download size: 468 k2 h) X t' u' J) y0 }$ T0 t
Installed size: 1.2 M
5 J8 l6 h. b/ s' U* }3 R2 x5 Z: iDownloading packages:' y; d/ u: f; B0 ]( K n
(1/3): hunspell-1.3.2-16.el7.x86_64.rpm | 223 kB 00:00:00
. C8 E. V5 G A: d; l(2/3): enchant-1.6.0-8.el7.x86_64.rpm | 55 kB 00:00:00
9 I2 a% E4 P2 [5 s(3/3): hunspell-en-US-0.20121024-6.el7.noarch.rpm | 190 kB 00:00:00 8 x' A8 Z) g. [) \7 |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------" g) j3 o N! x& N
Total 3.9 MB/s | 468 kB 00:00:00 + E3 N" V3 [' v! u
Running transaction check" o: E/ J [2 R" y8 i' q
Running transaction test
' _$ g: S' G' ^+ B1 wTransaction test succeeded6 c c4 {9 Q' U# }9 t4 A
Running transaction
2 k; W9 a8 t5 o( R3 U# ]- ~2 i! z5 a/ M Installing : hunspell-1.3.2-16.el7.x86_64 1/3 6 \# z* _7 j3 N% p2 f. x
Installing : hunspell-en-US-0.20121024-6.el7.noarch 2/3
& c& h2 X% p7 N. e Installing : 1:enchant-1.6.0-8.el7.x86_64 3/3
) ?' G% F9 ]2 s# |0 q Verifying : hunspell-en-US-0.20121024-6.el7.noarch 1/3 * c0 |& }. m8 y7 |5 r. _. [
Verifying : hunspell-1.3.2-16.el7.x86_64 2/3 $ p( u: s1 w7 m& U* Y: q; q
Verifying : 1:enchant-1.6.0-8.el7.x86_64 3/3
. u3 e) P: r: _: x) |$ M, G' \# w. s8 t$ N+ r t3 e
Installed:& @4 V, ]# N7 V/ C6 Q, h: g
enchant.x86_64 1:1.6.0-8.el7 " H! T* J4 ?. V- o0 V S3 n0 d
+ N0 v6 f" m( @ n" [) {
Dependency Installed:! G) `) N1 j( p7 k w% C: e
hunspell.x86_64 0:1.3.2-16.el7 hunspell-en-US.noarch 0:0.20121024-6.el7
; a) q5 X- D* M9 o R& i* }8 ^6 q
0 [8 d1 O: i: d9 p7 [) VComplete!
8 N3 r) {6 w4 |' p3 ^8 x" _
7 i- T) a8 [- u, e7 g安装enchant 2 t: ^$ s7 s* F1 s1 M
[root@ipam enchant]# yum install -y enchant $ `- f* t- S+ e, R9 f* O: d
Loaded plugins: fastestmirror
! z [* Q2 z3 W0 `) X# u9 v( _Loading mirror speeds from cached hostfile
8 b( f, Y7 Q( D, {. XPackage 1:enchant-1.6.0-8.el7.x86_64 already installed and latest version6 E8 v5 R2 [: i
Nothing to do7 W; O5 Q' E5 u6 S3 d' f
[root@ipam enchant]# pkg-config --modversion enchant0 E, w! l. O4 h( \8 k% y
Package enchant was not found in the pkg-config search path.0 \/ {5 y6 H8 c0 ?# A* o
Perhaps you should add the directory containing `enchant.pc'
1 h) G, M. Q; q0 g; fto the PKG_CONFIG_PATH environment variable/ z7 e1 J7 H1 I* t) }! F
No package 'enchant' found
7 X( @* `. y$ L[root@ipam enchant]# pkg-config --modversion enchant
+ f3 a" p+ _0 Z3 D# PPackage enchant was not found in the pkg-config search path.& K( p; h, _" v( A3 |; P* q1 h
Perhaps you should add the directory containing `enchant.pc'
# s( I q5 {5 |0 S3 o4 G, u# L2 cto the PKG_CONFIG_PATH environment variable
& l* X9 C% `) u9 ]0 RNo package 'enchant' found
4 t0 A) q* l' D
0 ^, j/ B+ P A6 r t5 h7 {! M安装enchant-devel插件:$ Z7 Y4 n- ~% j ~( v; s# ~4 |. `
- W- P$ ]. F0 w
[root@ipam enchant]# yum install -y enchant-devel* M8 O5 u1 ?7 K9 p( h
Loaded plugins: fastestmirror
. n& S6 R- l) lLoading mirror speeds from cached hostfile
5 @/ b: x4 t* z# E5 yResolving Dependencies |! g3 b. L/ m
--> Running transaction check" _1 ?, k7 N A
---> Package enchant-devel.x86_64 1:1.6.0-8.el7 will be installed
4 w: g$ u0 }( J$ v* j--> Processing Dependency: pkgconfig(gmodule-no-export-2.0) for package: 1:enchant-devel-1.6.0-8.el7.x86_64
0 J# R0 n; X; ]0 A--> Processing Dependency: pkgconfig(glib-2.0) for package: 1:enchant-devel-1.6.0-8.el7.x86_64
( n9 v7 ]0 c6 b7 k1 ~" \--> Processing Dependency: glib2-devel for package: 1:enchant-devel-1.6.0-8.el7.x86_64
7 P$ ~. Y; m7 C2 K3 w$ B--> Running transaction check3 r. v( O1 @+ `
---> Package glib2-devel.x86_64 0:2.56.1-9.el7_9 will be installed5 }7 n( L) G: g3 v
--> Processing Dependency: glib2(x86-64) = 2.56.1-9.el7_9 for package: glib2-devel-2.56.1-9.el7_9.x86_643 H8 ^6 O1 W7 v. z
--> Running transaction check( r% k3 a/ E+ K0 z; a! {
---> Package glib2.x86_64 0:2.56.1-7.el7 will be updated8 e9 [0 m5 ]0 C' k! c8 o
---> Package glib2.x86_64 0:2.56.1-9.el7_9 will be an update! q& I1 T) N9 g u/ i0 H/ d
--> Finished Dependency Resolution
6 Y8 J! ?' B/ m v. ~
: q. e6 ^! i1 ?/ {8 w3 @' t XDependencies Resolved f# w) A9 s$ X' \9 J5 T
5 W. ^. |/ B- V/ G& p# Y
=============================================================================================================================================================================* d7 Y# _, M4 }6 [' n3 p
Package Arch Version Repository Size( a" `; n* k! ~" B8 I( T" _
=============================================================================================================================================================================
6 `* |4 F/ V7 W0 bInstalling:: D1 G9 [* w. E% ?5 ~) h
enchant-devel x86_64 1:1.6.0-8.el7 base 13 k" R! r( }3 T* F* r
Installing for dependencies:
* J: v$ V8 {* j3 o) N glib2-devel x86_64 2.56.1-9.el7_9 updates 453 k4 i/ U( R U! V ]) u
Updating for dependencies:
" R, v+ H) S$ U7 a( T6 J7 J glib2 x86_64 2.56.1-9.el7_9 updates 2.5 M. a8 a+ ^; T U2 Y
& T9 A7 F6 x+ L' f4 HTransaction Summary3 i7 G+ |& u6 k- e! k" |" r! c
=============================================================================================================================================================================# F* k! p# K! r" E
Install 1 Package (+1 Dependent package)
, L3 u& b" ~! v& x3 N" rUpgrade ( 1 Dependent package)
6 m3 z- @. W# w1 K: P
8 b& c' d9 j8 E% X3 v: t1 jTotal download size: 2.9 M
4 v& b/ |: {5 k7 K- X: r( B+ [Downloading packages:
' k2 K2 `4 B( i$ xDelta RPMs disabled because /usr/bin/applydeltarpm not installed.
$ g" X0 x8 C" K9 ?5 a5 G(1/3): enchant-devel-1.6.0-8.el7.x86_64.rpm | 13 kB 00:00:00
# T" E1 l0 V' Z1 a( O2 w(2/3): glib2-devel-2.56.1-9.el7_9.x86_64.rpm | 453 kB 00:00:00 , d' @; m$ ^; { |- [+ r$ h
(3/3): glib2-2.56.1-9.el7_9.x86_64.rpm | 2.5 MB 00:00:00 ) l9 k& D \* J; P1 @$ n& Y5 N" C0 V
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------* f0 w$ v5 A& {% E' B% I
Total 28 MB/s | 2.9 MB 00:00:00 + z) c' p6 l, R" K1 r
Running transaction check) n$ {. F& \" \, U/ q! f& D8 P# V- i
Running transaction test/ i. u* Y1 T/ W: I
Transaction test succeeded
( S8 Y* L4 U w& a. ~+ }Running transaction
1 k) a, u3 _7 F7 z# ^5 u: A" B$ r Updating : glib2-2.56.1-9.el7_9.x86_64 1/4 ( w/ q( J0 W6 k/ y/ s
Installing : glib2-devel-2.56.1-9.el7_9.x86_64 2/4
. d( P+ V. R3 H5 ` Installing : 1:enchant-devel-1.6.0-8.el7.x86_64 3/4 7 N9 C8 P$ Z8 @& c; N" o/ ]7 N* o
Cleanup : glib2-2.56.1-7.el7.x86_64 4/4 7 L5 G8 U/ ^% s5 T% y' c$ |/ B
Verifying : 1:enchant-devel-1.6.0-8.el7.x86_64 1/4
9 w! o( x$ u) z: W) U3 } Verifying : glib2-2.56.1-9.el7_9.x86_64 2/4 $ k) G7 d, P7 E( D9 Z
Verifying : glib2-devel-2.56.1-9.el7_9.x86_64 3/4 9 Z% j3 h9 S/ E6 B2 I7 H
Verifying : glib2-2.56.1-7.el7.x86_64 4/4 7 n8 p3 j" E3 p2 B1 M9 o
4 X" e- E/ R9 [- R: v! }4 i) tInstalled:
1 L# c; Q$ u' G" l- k enchant-devel.x86_64 1:1.6.0-8.el7 ! s0 J1 r# ?- R$ n- F, v
) I4 }) K/ I3 j7 x: lDependency Installed:
4 \( G7 m( M0 ?2 X4 } glib2-devel.x86_64 0:2.56.1-9.el7_9
( A- l# `7 Y( u
8 Y, r: r. _; j9 ], IDependency Updated:$ }1 I- d' l) G
glib2.x86_64 0:2.56.1-9.el7_9 2 g& k' b# B6 h* X. K: |9 ?7 C% q: y' V
9 _5 f, N# J/ _, F& c
Complete!3 g8 s) j& }8 T: j. g+ T5 W7 {
8 h, `$ [5 l3 H3 u$ M/ C
检查版本:
/ q7 V6 i$ F% v[root@ipam enchant]# pkg-config --modversion enchant1 E4 d7 i* E6 ?( e) K
1.6.0
; Z5 ~/ h( p. R6 O; x" S& Q8 z
. l5 n( \3 L$ e3 x( E. X7 ]- p0 H
再次编译:成功解决:8 B& H- S- u1 J% p/ N+ o4 c8 V
[root@ipam enchant]# ./configure --with-php-config=/usr/local/php/bin/php-config $ K$ ]: R6 C1 l4 ^/ ^( B9 r
checking for grep that handles long lines and -e... /bin/grep
4 I" ?, W$ j- e# r2 o8 B8 Y7 G7 wchecking for egrep... /bin/grep -E+ g5 O. z6 a1 J* [% b( W; y8 g
checking for a sed that does not truncate output... /bin/sed$ f1 M% t3 U- k1 m2 d
checking for pkg-config... /bin/pkg-config% j: _" H2 u+ @- s' X$ M0 A
checking pkg-config is at least version 0.9.0... yes. c5 E% r& g0 X1 G2 e3 A& z# z
checking for cc... cc% k( i" ~% Q& L6 I+ x
checking whether the C compiler works... yes& K1 J: h3 `6 _: }3 I, V
checking for C compiler default output file name... a.out+ W6 S7 a# Y; H1 \0 u
checking for suffix of executables... ; }; f2 @- O: n
checking whether we are cross compiling... no
$ b' B$ q- R+ Y3 H( e, L! M9 achecking for suffix of object files... o
9 J1 ]4 [5 e3 I4 achecking whether we are using the GNU C compiler... yes/ ~0 u* \ d8 h! I' V* E
checking whether cc accepts -g... yes
! y2 r F0 v' R( c* w" c. T8 Zchecking for cc option to accept ISO C89... none needed
3 s* ~; O% n& D* _$ Hchecking how to run the C preprocessor... cc -E
. \7 x7 X* S; Q5 X3 } _checking for icc... no' G+ J8 `5 f2 ~( R6 h( ]. U% w
checking for suncc... no9 k$ b. |) p7 g; P# P y
checking for system library directory... lib
; E" Y5 j- L) w; Z! pchecking if compiler supports -Wl,-rpath,... yes& w& k7 D3 V3 p: f( G( V; q+ G& H @
checking build system type... x86_64-pc-linux-gnu
+ t& c( y6 o1 R7 u7 U: Nchecking host system type... x86_64-pc-linux-gnu" ]0 o$ n( b2 k
checking target system type... x86_64-pc-linux-gnu
8 {# H9 |# ]+ X2 A6 P3 i) k# Achecking for PHP prefix... /usr/local/php
4 a1 f2 R, _- a: ~: @; F$ ?, S( f" u6 Ichecking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib3 @4 \4 i& ]. k. y' x) M9 Q' M
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20230831
/ g9 u G9 i) @5 Cchecking for PHP installed headers prefix... /usr/local/php/include/php+ G& D& W+ T5 K, ^! _; t
checking if debug is enabled... no
! M5 @9 \. i/ _! hchecking if zts is enabled... no
, F& n% W" \5 E( [! \: ~checking for gawk... gawk6 q+ D% n$ Q; }* n) h$ j. `: [
checking whether to build with Enchant support... yes, shared; m! Y3 {% @- [! @
checking for enchant-2... no) D& c2 B/ k3 `4 N( h' o- w( y6 D
configure: WARNING: libenchant-2 not found trying with old libenchant
! h# _' L2 {) m( U9 _0 Ychecking for enchant >= 1.4.2... yes
' S7 t: {" I1 ~checking for enchant_get_version in -lenchant... yes
, ^# B0 L0 A+ X/ U( j8 n- gchecking for enchant_broker_set_param in -lenchant... yes# e, E4 U- o- M8 n- s
checking for a sed that does not truncate output... /bin/sed7 @6 |" \0 H8 h
checking for ld used by cc... /bin/ld6 \0 ?" e4 }6 D7 S
checking if the linker (/bin/ld) is GNU ld... yes. o3 {, \' K1 b5 F) Z# Z
checking for /bin/ld option to reload object files... -r
0 @/ n6 x- Z+ J3 Q5 U) F5 dchecking for BSD-compatible nm... /bin/nm -B/ B- z: C* k* E a
checking whether ln -s works... yes* [/ I. X- h6 \+ r
checking how to recognize dependent libraries... pass_all, Z- H0 J u# t3 O
checking for ANSI C header files... yes- s7 l" l+ S; Y0 z
checking for sys/types.h... yes
+ U4 j% S, v$ {. ]- achecking for sys/stat.h... yes9 T0 b4 m# M: g4 g* m+ h5 _
checking for stdlib.h... yes
2 Q. ?. x7 `; Z" S" ]9 echecking for string.h... yes
& e9 _ r. F6 ^" Achecking for memory.h... yes) T& r( R, G% G. t" E& e
checking for strings.h... yes
5 G7 s: r5 `- I1 e+ A4 L/ [checking for inttypes.h... yes9 v9 `; X# `2 A4 v0 J
checking for stdint.h... yes* d8 j7 p2 q! g
checking for unistd.h... yes
( W3 ?+ x Y4 X( Nchecking dlfcn.h usability... yes
6 K2 T9 s1 \1 zchecking dlfcn.h presence... yes$ X* z9 G) E- H! A
checking for dlfcn.h... yes
) j) O) W! o& m' h. p2 ychecking the maximum length of command line arguments... 15728643 b& D/ t1 J3 A
checking command to parse /bin/nm -B output from cc object... ok
- F; L) [ W. C6 l! c7 H$ tchecking for objdir... .libs1 W* v$ B D) g1 R. M
checking for ar... ar, u5 J0 q9 X( g5 [
checking for ranlib... ranlib
$ l$ F# i( H3 ~0 g+ ]- _3 W+ uchecking for strip... strip
- M' ?1 r, j- x+ n2 Y9 Cchecking if cc supports -fno-rtti -fno-exceptions... no3 X0 j1 s8 k! s6 E7 g7 t
checking for cc option to produce PIC... -fPIC; w8 e& r O! ~1 A, ?
checking if cc PIC flag -fPIC works... yes
" b. U5 _! H+ Z* d* a6 zchecking if cc static flag -static works... no" Y8 A: m+ N$ k; W' R; ^, y
checking if cc supports -c -o file.o... yes" F1 c; |5 i7 ]" J
checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes' C* b6 T! H \' N2 {) ]# u
checking whether -lc should be explicitly linked in... no
* I# q0 v4 Z: `checking dynamic linker characteristics... GNU/Linux ld.so. f% m* P) f/ ?5 c0 [
checking how to hardcode library paths into programs... immediate5 I- T) x3 H! d. M
checking whether stripping libraries is possible... yes6 m9 n. m6 F/ s; a# v" S
checking if libtool supports shared libraries... yes
, n8 }/ e) O8 k4 t2 \6 W/ w' x' ^% |checking whether to build shared libraries... yes
& X4 Q% G9 t3 i. C6 v& b6 xchecking whether to build static libraries... no
6 w6 |& J ]- s7 y" L' ~# l- O
2 P/ C$ Y) I7 x3 ]8 acreating libtool
- I; l% _' ^9 d* sappending configuration tag "CXX" to libtool
; O6 s9 b0 y7 {configure: patching config.h.in1 S. W0 C3 A G C3 j3 z" G" j4 A
configure: creating ./config.status2 S+ ~, u C# }& s1 y! m
config.status: creating config.h
( G9 j7 w- p6 `- @
, t3 T4 f9 k# ]1 A) b1 Q& \ |
|