找回密码
 注册
查看: 11|回复: 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
$ w. J- u2 J! [7 d- t2 L% \configure: error: GNU MP Library version 4.2 or greater required.4 j( e& C" Q8 I4 h

2 Z9 k2 C0 t; w2 g/ D( k, z4 J6 v( N8 b) }& b. C3 W0 s* N
configure: error: GNU MP Library version 4.2 or greater required.
" d* V  y' a. W解决:
8 m1 o) T/ U$ S* z# Y" [( K& }" i#yum -y install gmp-devel' ~: {6 G) ]( q6 g9 {' _

7 y/ r  [) P, d# g! j: m0 A4 U
1 z- D6 m% t' e) O7 ^
( i. }! Y4 O: g" r2 u8 [0 j
[root@ipam2 gmp]# ./configure --with-php-config=/usr/local/php/bin/php-config
) o. b- |2 h7 \, @5 P: Z' _' N$ D9 Bchecking for grep that handles long lines and -e... /bin/grep
0 e. @- X/ d: i8 Pchecking for egrep... /bin/grep -E
* s$ X/ y3 k$ R( ochecking for a sed that does not truncate output... /bin/sed- h$ W/ L5 ]% O
checking for pkg-config... /bin/pkg-config
! V6 Z6 E7 K# C& K: u5 @2 F. Echecking pkg-config is at least version 0.9.0... yes
& I( F7 m  }+ E( ^2 hchecking for cc... cc3 ]4 L2 |# I' K8 H) S+ ]$ g4 w( ?% f
checking whether the C compiler works... yes
7 [& E, A* B' n& d8 R% [: a1 ]* Q' ychecking for C compiler default output file name... a.out5 ~  o7 q: T; o  D
checking for suffix of executables...
2 M- d! ?* Y. D+ Mchecking whether we are cross compiling... no
* K5 W. h4 `) x) qchecking for suffix of object files... o
1 ^- P" u9 E7 s+ R/ @1 \checking whether we are using the GNU C compiler... yes! e% k7 _0 W) h" l
checking whether cc accepts -g... yes, x, X) ]' [5 g: r
checking for cc option to accept ISO C89... none needed% B0 Y; S: \0 P
checking how to run the C preprocessor... cc -E
9 ^4 f& w8 ]/ j8 e7 G6 n& I8 A* Kchecking for icc... no$ Q/ ~7 f: ^( p( F
checking for suncc... no
9 s$ f7 J/ g* |1 ychecking for system library directory... lib' ]6 V2 i3 F9 E$ E
checking if compiler supports -Wl,-rpath,... yes
: w, G. p& o  ichecking build system type... x86_64-pc-linux-gnu2 Q  N/ m5 U2 F2 l$ @0 H! O9 P
checking host system type... x86_64-pc-linux-gnu
' b7 z- q$ c$ l# \checking target system type... x86_64-pc-linux-gnu
! L+ o! W# c  i" s1 }checking for PHP prefix... /usr/local/php, ?; m. h) }" B. F
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! g# }" ?) b+ g4 E, ?! a$ `
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-zts-202308317 n' k4 y8 ^2 H7 P
checking for PHP installed headers prefix... /usr/local/php/include/php5 M& S' @) A5 F' D& O, |
checking if debug is enabled... no! |! E* e0 p) R8 L- k8 S6 l( j
checking if zts is enabled... yes6 k" i$ J7 Z  y$ W$ c3 _5 b: e
checking for gawk... gawk
# m( ]3 ^& O* h6 H% f$ T  M9 s& n1 ?checking for GNU MP support... yes, shared+ G% J+ i% {; V: T- K
checking for __gmpz_rootrem in -lgmp... no
4 U3 W6 s' ], T, z2 Bconfigure: error: GNU MP Library version 4.2 or greater required.9 k4 r( D% w' W% u$ R
[root@ipam2 gmp]# yum install -y gmp-dev/ S6 Q$ \# F- h$ p
Loaded plugins: fastestmirror
9 f: U9 K7 _) f& WLoading mirror speeds from cached hostfile3 V) T+ M6 M. h% _5 K: V+ w
epel/x86_64/metalink                                                                                                                         | 6.4 kB  00:00:00     
# J4 P( Q$ p  b& P * base: ftp.sjtu.edu.cn
! B9 T9 A, w. V$ Q4 x3 S; @ * epel: ftp.iij.ad.jp' G/ E4 S7 Q  I- }2 Y
* extras: ftp.sjtu.edu.cn
6 G) I; m+ M+ M * updates: mirrors.163.com+ e6 ~9 {' [0 o) |: a% ^
base                                                                                                                                         | 3.6 kB  00:00:00     
2 j2 f% i5 ]- |epel                                                                                                                                         | 4.7 kB  00:00:00     - d4 `  h/ ]3 W0 U3 n9 [( {
extras                                                                                                                                       | 2.9 kB  00:00:00     ! K, F: F, ]9 |( ]' G. y( R! P/ y( z" ?
updates                                                                                                                                      | 2.9 kB  00:00:00     
# d, }, E8 V0 }- L  y9 XNo package gmp-dev available.
+ [7 A. z" I, a  {/ O' JError: Nothing to do
; X; `7 o9 K% K8 s2 h  {[root@ipam2 gmp]# yum -y install gmp-devel$ H* L# E: _. A; y" ]8 y
Loaded plugins: fastestmirror) ^/ T# k) I- f! d3 {! t4 S* _
Loading mirror speeds from cached hostfile" W- v5 ^! @% H+ t
* base: ftp.sjtu.edu.cn. ~3 V9 ]  O& Y8 e: y! o
* epel: ftp.iij.ad.jp; Y( W1 T  k8 s* S- C4 s% D3 g
* extras: ftp.sjtu.edu.cn
9 @' n" R. A  @9 }+ c- J * updates: mirrors.163.com
1 z6 `9 E8 O- V- ^. [; X" ^Resolving Dependencies
  D7 _" ?! I8 q* _: v--> Running transaction check5 N3 ^8 g- @# Z7 A9 i
---> Package gmp-devel.x86_64 1:6.0.0-15.el7 will be installed
' Q4 R) P8 h- r$ F5 _/ t% U--> Finished Dependency Resolution
2 U# |2 y% {) P2 X- S4 ~
# [7 d- u$ O3 u1 F* |" X1 PDependencies Resolved9 t  z' F- I5 L; v2 |
2 P$ o; {7 v5 Q
====================================================================================================================================================================
" O; m. G5 y1 `+ | Package                                 Arch                                 Version                                      Repository                          Size& [9 z: o8 L. Z+ x. G3 r
====================================================================================================================================================================5 N6 u9 d- ^* w" D
Installing:
- v( F. _0 M! T gmp-devel                               x86_64                               1:6.0.0-15.el7                               base                               181 k
6 V1 b5 D  y; V$ g& l2 O) I8 n
5 w* l  B; P' s2 X" i* `Transaction Summary6 L+ r- a1 c5 c/ F& Q+ m0 r! Z' _- L# a
====================================================================================================================================================================
7 N, D8 i, j1 E' o5 t8 l: bInstall  1 Package
% f, U  W! f; d5 w% w
4 a. t. ?4 @6 C' [* s" o4 aTotal download size: 181 k1 b# P- B7 X& b/ K
Installed size: 340 k+ R3 ~* _. Y* i+ E
Downloading packages:7 D! [5 }; ~" I: L' z& Z
gmp-devel-6.0.0-15.el7.x86_64.rpm                                                                                                            | 181 kB  00:00:00     
7 h. O$ M5 T( l; X# fRunning transaction check4 J0 T( `( I( \# |! d) j
Running transaction test4 w1 W; {4 X$ K9 v# I
Transaction test succeeded) J* J: N$ h1 i# Z+ o. d
Running transaction- D! `$ D- K: q9 c0 i! i% I  I
Warning: RPMDB altered outside of yum.' r2 S: n* t, ]- }
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:* p8 s5 O4 q! U, [4 x: [
2:postfix-2.10.1-9.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
% S; g/ d$ f! [3 u2:postfix-2.10.1-9.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit), n8 K5 Y# G. [' |/ X
  Installing : 1:gmp-devel-6.0.0-15.el7.x86_64                                                                                                                  1/1
  \" N( M- G, t  Verifying  : 1:gmp-devel-6.0.0-15.el7.x86_64                                                                                                                  1/1 * ^% N. c3 R; V& U/ E
+ E1 C9 y/ R4 x* d* @
Installed:" |2 X8 ^7 ^* X2 n2 e  [
  gmp-devel.x86_64 1:6.0.0-15.el7                                                                                                                                   6 C2 f  \1 H8 _! x9 g
- d( m2 w% r5 i% b5 D+ J; b' R: l
Complete!
0 D5 o) O) Y# t[root@ipam2 gmp]# ./configure --with-php-config=/usr/local/php/bin/php-config 5 R& u$ v5 x! T2 l6 e
checking for grep that handles long lines and -e... /bin/grep1 b! f0 L% n' f* Q" v; F3 G) O( X
checking for egrep... /bin/grep -E- |. K8 Q2 W& U, Q
checking for a sed that does not truncate output... /bin/sed6 l2 U) ?6 S! p3 t  k  R  F
checking for pkg-config... /bin/pkg-config( ~% d9 Z2 @' B% C; Y2 u
checking pkg-config is at least version 0.9.0... yes' x/ B; Q* l7 `4 [. K" @) `
checking for cc... cc
0 M' r; J+ J; `checking whether the C compiler works... yes
/ y8 W! b" E5 }0 P: x- B0 x3 \checking for C compiler default output file name... a.out/ `' B# w( ]: u- ?  d
checking for suffix of executables...   e: t3 j. ^1 i" s$ \
checking whether we are cross compiling... no5 v/ W2 T! B# x5 u( s: |
checking for suffix of object files... o' h2 v3 `8 M+ o; g. v) p
checking whether we are using the GNU C compiler... yes. v/ T9 N( N; J! n' m- B
checking whether cc accepts -g... yes
5 q6 ~# G3 Y- x1 H# @; W  F8 ^checking for cc option to accept ISO C89... none needed4 s$ I3 g' o* R- X5 t1 @2 g
checking how to run the C preprocessor... cc -E+ |# ]6 A7 p9 j, \' F
checking for icc... no
6 b* n% U# Y. G- dchecking for suncc... no$ y* P# r/ U2 Q/ j& i2 E+ p
checking for system library directory... lib% T$ L, g% d& \' _9 k* `% t) n
checking if compiler supports -Wl,-rpath,... yes
$ C% Q: ]& f8 r+ E+ k6 achecking build system type... x86_64-pc-linux-gnu
) a* V1 w& H' B1 m' schecking host system type... x86_64-pc-linux-gnu5 ~( u$ z" E/ P. {/ B
checking target system type... x86_64-pc-linux-gnu
6 {7 Z6 g7 ?( ^6 S6 ^checking for PHP prefix... /usr/local/php
3 j; i8 e( V% wchecking 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
3 H* \' d, b" O. Q/ C" A8 pchecking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-zts-202308315 L# T  h' j6 g4 q
checking for PHP installed headers prefix... /usr/local/php/include/php
3 ]# q* F3 n: V) o. k: Wchecking if debug is enabled... no
, f+ D6 ]5 t  ?/ u* k4 gchecking if zts is enabled... yes
5 }8 D/ r. B: e2 e" S* p  wchecking for gawk... gawk! |; o- K1 b- \  e  k8 `
checking for GNU MP support... yes, shared
6 V' }8 |5 G) C0 W7 y& b# lchecking for __gmpz_rootrem in -lgmp... yes
2 ]; Q$ T+ ^" H/ W* j; G+ Vchecking for a sed that does not truncate output... /bin/sed
7 H" b6 }, \8 achecking for ld used by cc... /bin/ld* E% z! w: d; V7 m
checking if the linker (/bin/ld) is GNU ld... yes; c# G! \* y' M0 U6 E
checking for /bin/ld option to reload object files... -r
6 H% T2 U. k3 g: uchecking for BSD-compatible nm... /bin/nm -B
, Q  G4 X$ J; m- o; `checking whether ln -s works... yes
! b; U: W0 U* Q- {! @: dchecking how to recognize dependent libraries... pass_all; w! ]1 `/ F1 N+ S
checking for ANSI C header files... yes: M; H9 N1 c& Y) ^/ h
checking for sys/types.h... yes
1 L4 z2 ^1 n" h4 P; P% B4 M5 f! Cchecking for sys/stat.h... yes& F0 ?  F- X3 U! _" h# c
checking for stdlib.h... yes
; N( K: G  P* ~1 L9 {checking for string.h... yes  C) k3 ^! F  k) j
checking for memory.h... yes/ U7 V& E4 A# ^
checking for strings.h... yes3 p- H2 @& c! o& H! ~2 h# B3 J
checking for inttypes.h... yes3 d6 S, ^6 {' H  m: J5 Z' g
checking for stdint.h... yes/ [; U, s- e; P3 Y
checking for unistd.h... yes
% I: ]9 S! B) }* l2 n& Y5 t" a: Uchecking dlfcn.h usability... yes
1 G! C* }) r4 N. o. zchecking dlfcn.h presence... yes
3 I; r7 @8 I2 l8 @checking for dlfcn.h... yes
! M: G0 _" X; _% W# uchecking the maximum length of command line arguments... 1572864
1 x# Y1 [9 P/ G! Q* K* G: uchecking command to parse /bin/nm -B output from cc object... ok6 c0 x- T8 f* y; O5 X  K
checking for objdir... .libs9 n5 T. d, z0 M& U) }( K
checking for ar... ar
/ _6 s, @" P. }( _: _* tchecking for ranlib... ranlib7 a; l" c1 I4 Q) G+ H  f3 R* R
checking for strip... strip
8 T) U4 p0 w( M, S6 L$ A" ~# ]# Qchecking if cc supports -fno-rtti -fno-exceptions... no9 B$ [# ?5 ?$ Q. ]; Q/ ?+ i
checking for cc option to produce PIC... -fPIC/ O3 Y$ z3 R3 }- `3 w8 L# N
checking if cc PIC flag -fPIC works... yes4 f% a: H$ o* p: l1 I: w7 y
checking if cc static flag -static works... no1 i  ~1 ], h/ {& z6 b! [5 D' C& `
checking if cc supports -c -o file.o... yes) l( F/ m  x1 @0 B
checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
7 m. F# T9 v6 F/ B7 L1 Tchecking whether -lc should be explicitly linked in... no  h9 c5 m. s1 k$ ^" v. ~, \! P' E
checking dynamic linker characteristics... GNU/Linux ld.so7 A3 ~' q$ E! a0 E
checking how to hardcode library paths into programs... immediate
: Y7 d  O* `/ R6 u! {* _: pchecking whether stripping libraries is possible... yes6 r, A9 d: f+ B0 j; g/ p" w2 P
checking if libtool supports shared libraries... yes( W$ H& R1 R. d7 T# `* t" y9 k
checking whether to build shared libraries... yes9 M' k8 A$ U+ ]. B3 U' o0 ?0 n
checking whether to build static libraries... no
8 L9 X6 }# g0 V7 y8 B! S1 V. L6 m- Z0 d7 h
creating libtool
7 u' E2 b! ?7 \$ a6 K, z4 O# s) Wappending configuration tag "CXX" to libtool
  X# w. ~& _  J+ c! f/ vconfigure: patching config.h.in* w2 ^5 k2 E' z4 a7 `
configure: creating ./config.status& G. x( C5 v2 I5 ?0 y
config.status: creating config.h$ v( h( g- {! G! a3 N: g9 F( B" }7 Q
5 q. K. d3 f9 i3 C% Q  l
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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