找回密码
 注册
查看: 8|回复: 0

php添加模块报错configure: error: GNU MP Library version 4.2 or greater required. 解决办法

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-1-6 22:07:30 | 显示全部楼层 |阅读模式
报错:checking for __gmpz_rootrem in -lgmp... no
2 m% k* W4 [+ @/ J# T- y) ]configure: error: GNU MP Library version 4.2 or greater required.
7 n3 F* e, z4 k6 r  i# ^+ D! b- a% B) e5 n. l* V) @

2 \: \0 T9 R  j$ h) X' l5 dconfigure: error: GNU MP Library version 4.2 or greater required.1 y$ W, X9 p6 T7 |9 z
解决:
- {+ R& O$ w/ O! u5 r/ y$ q  D#yum -y install gmp-devel9 B+ k# m' _9 q! H6 o0 I
. s5 {1 ?4 y$ j+ l5 o- X

& \# K% V9 r+ u5 P* T% \# u1 ^' g; e
& a7 X; V5 a7 F
[root@ipam2 gmp]# ./configure --with-php-config=/usr/local/php/bin/php-config * p# ~5 B, c* C) ~7 N
checking for grep that handles long lines and -e... /bin/grep
/ @& Z# S7 h& Tchecking for egrep... /bin/grep -E) \$ O* m+ T9 G$ v6 L: D1 u
checking for a sed that does not truncate output... /bin/sed
' r! N! T' z$ n( d: M: kchecking for pkg-config... /bin/pkg-config0 P( ]7 H4 c1 P  O
checking pkg-config is at least version 0.9.0... yes. J! j1 z" ^, x: s+ e
checking for cc... cc# V0 |; f; j/ j" M
checking whether the C compiler works... yes
$ p$ k  z. K' }1 Q6 h2 h/ X5 c, `checking for C compiler default output file name... a.out" H8 o7 C5 p  h" N7 ~+ t
checking for suffix of executables...
& j- a4 E8 a* d: ochecking whether we are cross compiling... no
  c' B! \- ?1 Q7 T  k( Dchecking for suffix of object files... o
/ d  U( c& C. C1 R0 uchecking whether we are using the GNU C compiler... yes
9 M5 r% @" ~% Qchecking whether cc accepts -g... yes
! B. `' N9 I  L  K6 b3 y: wchecking for cc option to accept ISO C89... none needed
2 v/ U0 h* E: d" G9 v% |checking how to run the C preprocessor... cc -E
  K3 h2 S% N) r( Hchecking for icc... no
# p( W6 {  w4 V0 S6 ochecking for suncc... no
& G+ W2 L2 L% A, o7 Q5 K4 h, x2 schecking for system library directory... lib
7 j1 D3 A; H* c* schecking if compiler supports -Wl,-rpath,... yes
2 y. r  U' z* b. P/ Fchecking build system type... x86_64-pc-linux-gnu
! _4 B) ^, Y; ?checking host system type... x86_64-pc-linux-gnu
- M. Z, `$ r: c, Qchecking target system type... x86_64-pc-linux-gnu
, w0 t  L( W" M$ J9 ^checking for PHP prefix... /usr/local/php$ k, s8 z% ~$ _/ M% }5 t
checking 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/lib7 H& t( b% l5 r& O* u- _
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-zts-20230831
7 \: T1 V6 P1 J  ^7 J0 g1 z/ n- Uchecking for PHP installed headers prefix... /usr/local/php/include/php6 J8 k) K2 e2 N: n5 B5 p
checking if debug is enabled... no
, _2 F% d% i4 C$ c0 s' _7 p2 kchecking if zts is enabled... yes3 f& M' j) b$ B* f7 e) I5 r
checking for gawk... gawk0 Y9 R1 J2 u  H8 `2 L1 s; _# K
checking for GNU MP support... yes, shared
# ?/ x: W& W3 K' Schecking for __gmpz_rootrem in -lgmp... no
. i- `5 n2 w9 iconfigure: error: GNU MP Library version 4.2 or greater required.
# v/ o; |5 P& x- Z+ |[root@ipam2 gmp]# yum install -y gmp-dev
% R* U) g8 p6 b/ ?1 fLoaded plugins: fastestmirror, ?! H9 f! i# b: y& {1 |
Loading mirror speeds from cached hostfile) Y) {, M* F% o& x6 u# S
epel/x86_64/metalink                                                                                                                         | 6.4 kB  00:00:00     
$ T2 G+ i  s# H! i$ C * base: ftp.sjtu.edu.cn, _  l3 p+ T. t; ^
* epel: ftp.iij.ad.jp
  z  ^) t& e( l. k( d& I * extras: ftp.sjtu.edu.cn
+ f  B+ N% I0 i2 }2 c# i * updates: mirrors.163.com
( C2 \  J7 x2 Kbase                                                                                                                                         | 3.6 kB  00:00:00     
1 s, H) |! n! b: R' Iepel                                                                                                                                         | 4.7 kB  00:00:00     : p8 ~0 |6 E4 K  K7 b4 ]  ?
extras                                                                                                                                       | 2.9 kB  00:00:00     
8 X4 h5 i% M' \* }  I) v0 J' {, qupdates                                                                                                                                      | 2.9 kB  00:00:00     ( y- `* _- g1 ^! ?  U; P: J! T
No package gmp-dev available.
5 r" t- @$ ^1 X0 g+ m, J6 pError: Nothing to do
* `! ^! ]( x* c9 b1 k! a8 E[root@ipam2 gmp]# yum -y install gmp-devel
6 c, z( }0 [! y' wLoaded plugins: fastestmirror& A( a& s9 |* Q
Loading mirror speeds from cached hostfile
) m4 D# q  B0 C4 R# m8 q * base: ftp.sjtu.edu.cn
8 N! y1 F# t2 O: m0 y * epel: ftp.iij.ad.jp
- @: s3 P% E7 Q# z% \1 r  R( V * extras: ftp.sjtu.edu.cn% W& d" Z' @$ H
* updates: mirrors.163.com
; R0 L, T) X" \- XResolving Dependencies. J* ?, n! |4 g4 c8 |. l( Z% \
--> Running transaction check
8 N3 N& m, J3 _  R/ J2 G8 V( ~% L# H---> Package gmp-devel.x86_64 1:6.0.0-15.el7 will be installed
/ W9 c9 a' F& @* e/ g  ]--> Finished Dependency Resolution
: N; y  y4 D" \8 j+ ?. x) @
  p- K1 u: I4 H7 w) E- TDependencies Resolved
  r( {" R0 B& I+ _! ]9 P5 k7 N) T0 y
====================================================================================================================================================================
! a2 a6 v8 o7 K- Z5 w Package                                 Arch                                 Version                                      Repository                          Size1 K+ v4 m+ l1 Y6 _3 m9 t
====================================================================================================================================================================
$ y2 h4 I1 S: y' \4 w9 k  |Installing:
2 U9 j6 S+ k* J# U: N gmp-devel                               x86_64                               1:6.0.0-15.el7                               base                               181 k# Z% |: v1 J1 f  ~8 p) r, }
- \- G+ i/ e, X
Transaction Summary
% W# P# ~+ I  C6 w% m====================================================================================================================================================================4 ?) \, d0 ?9 D* N
Install  1 Package
+ g: c3 V2 D6 ]9 q5 d! V
9 T/ [8 F# C7 E5 F3 _. qTotal download size: 181 k
0 O$ n1 {" {( d3 F# J) e$ Q) aInstalled size: 340 k$ d/ k* Q9 u0 X7 T' |
Downloading packages:( z* C5 \9 B7 z9 u9 U# h1 V/ ~
gmp-devel-6.0.0-15.el7.x86_64.rpm                                                                                                            | 181 kB  00:00:00     
4 y! o2 i+ b. ^* NRunning transaction check  ]  m2 _- _- B( X
Running transaction test
  }- Q4 a7 J7 ?4 J! DTransaction test succeeded
# v4 O) G' R" }  G) ^7 zRunning transaction
8 T5 B* N  g. @$ R3 ~7 ]Warning: RPMDB altered outside of yum.+ p0 b/ v' w) ?3 G- B
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
5 n# \& Z3 }6 R9 y( z7 s6 G2:postfix-2.10.1-9.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
9 L; D! g  N% P& E! D5 Y8 G- X& l2:postfix-2.10.1-9.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
! C9 v0 h" n8 a+ N  Installing : 1:gmp-devel-6.0.0-15.el7.x86_64                                                                                                                  1/1   }- F3 S! Z0 k
  Verifying  : 1:gmp-devel-6.0.0-15.el7.x86_64                                                                                                                  1/1 ; D1 s. t8 G" T

; R8 d" q& h/ m6 S; G1 lInstalled:8 @" E# C+ S; `" A1 P
  gmp-devel.x86_64 1:6.0.0-15.el7                                                                                                                                   ; }: W' `7 a& I& {7 }5 a
) q; G0 B( ?. L2 r5 C
Complete!5 V$ u  U+ U# q& G5 u% p
[root@ipam2 gmp]# ./configure --with-php-config=/usr/local/php/bin/php-config
$ _1 P1 j% i9 W3 Q/ qchecking for grep that handles long lines and -e... /bin/grep
8 g% Z5 t0 l7 t4 J8 V* Schecking for egrep... /bin/grep -E- l: H% r/ P9 i& l) ?* i% X
checking for a sed that does not truncate output... /bin/sed
$ Y. c/ v: y/ ~$ d6 Q; achecking for pkg-config... /bin/pkg-config  s% F" N" j! z0 {& ?7 m* e" Y
checking pkg-config is at least version 0.9.0... yes7 ^3 S* N# q% K0 Q( L. \
checking for cc... cc
) U& O) l! U  |' G! w* Q3 zchecking whether the C compiler works... yes
# D8 u3 v5 w, P1 x& h3 s3 [checking for C compiler default output file name... a.out
9 |3 v: g1 {9 f5 o0 Dchecking for suffix of executables...
# R) F/ u/ C6 ~# b4 dchecking whether we are cross compiling... no4 Q' b* }% o: ~, \% g9 q1 Q8 Y
checking for suffix of object files... o
3 r( K( x1 M* O: ~% O5 Zchecking whether we are using the GNU C compiler... yes
% Z" x. T8 ?/ o. A9 N# I! ]checking whether cc accepts -g... yes& v# _" N$ q4 v8 o+ R+ d: j
checking for cc option to accept ISO C89... none needed) R4 j5 j6 _* S+ K
checking how to run the C preprocessor... cc -E
/ p4 y8 I$ F& b) y$ U- s) }2 W/ Achecking for icc... no0 [9 a+ x. Y& Y% y; w* c7 e
checking for suncc... no
7 ^9 M( i1 @5 k0 Q% q6 @. f5 tchecking for system library directory... lib; L7 M+ r4 I2 ~
checking if compiler supports -Wl,-rpath,... yes" ?! @" w8 o' p# T( ~, J9 w7 m" x* C
checking build system type... x86_64-pc-linux-gnu
: y1 }  G. ]* }checking host system type... x86_64-pc-linux-gnu/ J, X' v) e; l" K3 ~
checking target system type... x86_64-pc-linux-gnu6 j7 P- N- Q. q% _" b
checking for PHP prefix... /usr/local/php5 g6 d6 c1 s) X) t
checking 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/lib
2 e6 f2 w- ]# v( l5 M# d8 kchecking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-zts-20230831
8 L8 _+ n2 ?; K+ I" W$ R. u6 qchecking for PHP installed headers prefix... /usr/local/php/include/php( p6 d+ X! l/ J
checking if debug is enabled... no/ o5 W5 X4 B* Q, l+ r9 z; }; O
checking if zts is enabled... yes
3 K6 X) f$ t' D0 q2 e4 C; v" K, gchecking for gawk... gawk1 v% _0 m: k5 `3 y% D) L4 ]* v
checking for GNU MP support... yes, shared: j3 g7 f- `7 |
checking for __gmpz_rootrem in -lgmp... yes
$ M* v8 g4 B! M+ F$ d$ r! Kchecking for a sed that does not truncate output... /bin/sed
3 M: {2 Q, W3 L: K0 ~6 ?  x4 ]checking for ld used by cc... /bin/ld
) N' F' b% w" r8 T# M; r: N. bchecking if the linker (/bin/ld) is GNU ld... yes
' H  g& v5 f+ A8 {, w) tchecking for /bin/ld option to reload object files... -r
( X! \9 X5 A7 [/ u' mchecking for BSD-compatible nm... /bin/nm -B! X9 x2 X+ t2 {% C
checking whether ln -s works... yes
, y9 u! _( Y$ v( r# m% Echecking how to recognize dependent libraries... pass_all
" l2 _% ~/ z8 Y- w2 U) a% X9 Gchecking for ANSI C header files... yes
4 w/ w. F8 Y4 S: [checking for sys/types.h... yes6 W( i0 p( y8 h7 G- N( z
checking for sys/stat.h... yes, r; |1 m7 C( P9 D: ~6 n
checking for stdlib.h... yes
$ @) ?. N% _, k! }9 d6 wchecking for string.h... yes
1 P  a$ E( v, T- o' G7 M5 }* dchecking for memory.h... yes7 v; n# `1 m( S( E0 {0 P1 t; g/ o4 @
checking for strings.h... yes; t  B8 b; V: h: l' \8 j+ t
checking for inttypes.h... yes
" L9 }6 ]2 R4 L: n  E% e* b7 ~checking for stdint.h... yes% M8 [/ x9 w' E% {
checking for unistd.h... yes! R8 S0 E" {' ^4 {# W+ h& k7 a
checking dlfcn.h usability... yes
. i; I+ w. N  @1 a3 ~checking dlfcn.h presence... yes
7 e% ?- q* v. ^3 T* Ichecking for dlfcn.h... yes7 U! w, k( h5 l4 \
checking the maximum length of command line arguments... 1572864
/ E! `7 c  T" Z0 V1 V5 lchecking command to parse /bin/nm -B output from cc object... ok
; }, D( h. a& E  I1 ]) N# }checking for objdir... .libs
  G: z3 c9 a4 z; |  Mchecking for ar... ar
9 u" v3 R: R; g% V5 @checking for ranlib... ranlib5 B7 W& r0 A, A
checking for strip... strip
% H: l1 q# L: s% ]checking if cc supports -fno-rtti -fno-exceptions... no
5 t: g# |" {" J0 @checking for cc option to produce PIC... -fPIC
+ k- k9 o! ]4 r; h' nchecking if cc PIC flag -fPIC works... yes7 h  S0 O5 @( z
checking if cc static flag -static works... no4 j3 {3 [) D( h7 n( h+ ?# o! X
checking if cc supports -c -o file.o... yes- @$ O9 p; c( F& N6 G
checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes$ t! B1 `7 E7 |+ _
checking whether -lc should be explicitly linked in... no
5 B( b) f  j& Q. |% c8 ]+ Echecking dynamic linker characteristics... GNU/Linux ld.so& ?) R  L$ o% W1 k2 ~
checking how to hardcode library paths into programs... immediate
. {- X) ?) Q# I( p& ?5 M4 |checking whether stripping libraries is possible... yes7 M' H7 i6 o$ [% b
checking if libtool supports shared libraries... yes
2 S$ g/ ]# X* ]0 K) R3 ^checking whether to build shared libraries... yes
) t: y# S9 g4 c' F: T+ kchecking whether to build static libraries... no9 Q1 _2 _$ N( A$ k  K- g

: X3 Y" E4 P7 P+ `" ^; Icreating libtool
6 |6 o' d# c  M* T1 kappending configuration tag "CXX" to libtool4 o1 r6 D" ]9 |9 _* T
configure: patching config.h.in8 |4 B4 A3 L+ j* }5 D# w" B
configure: creating ./config.status
$ S3 U5 m6 R' xconfig.status: creating config.h
& Z6 r- N# G( @1 h1 b

4 K0 `$ D8 N& p, S  y& o) @4 G9 J
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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