易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 5|回复: 0
收起左侧

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

[复制链接]
发表于 2024-1-6 22:07:30 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
报错:checking for __gmpz_rootrem in -lgmp... no
; Z+ a0 s' @$ _configure: error: GNU MP Library version 4.2 or greater required.
. s8 F$ ^! |- \& n  t2 {. p4 g8 x- T9 `
$ X2 ?! k# g) Z# F
configure: error: GNU MP Library version 4.2 or greater required.! d$ s% R+ w. j: p
解决:
# k# Q: o+ K( j% U1 m& P7 g1 O. ?8 m#yum -y install gmp-devel2 @2 I; S& E5 m/ I; K" ~
5 T4 a8 N: w2 W% W9 S
$ k! }# c/ f0 k, J
! X0 B2 r; h4 J# Z  c" D
[root@ipam2 gmp]# ./configure --with-php-config=/usr/local/php/bin/php-config 7 h! A3 N9 b- D6 ~
checking for grep that handles long lines and -e... /bin/grep
0 N9 J( K( g! J: p0 f; r* |checking for egrep... /bin/grep -E) {; j0 I, ?) ?! G! F4 h( R% T2 e
checking for a sed that does not truncate output... /bin/sed" ~/ V& @. K* A$ B: y6 g
checking for pkg-config... /bin/pkg-config) K2 R) g$ N! o0 X
checking pkg-config is at least version 0.9.0... yes. ^4 i$ }2 d) C7 B9 p2 J/ n0 d& J
checking for cc... cc
! z, A. u6 F0 K8 H# C1 Ichecking whether the C compiler works... yes
; m4 [' A& b6 S/ ]checking for C compiler default output file name... a.out
# D6 _; j; _6 Y3 Nchecking for suffix of executables...
7 `) Y' ~0 K4 {' @2 fchecking whether we are cross compiling... no
. s: |& m* y( rchecking for suffix of object files... o6 r) @1 M  _$ L4 }+ N, I
checking whether we are using the GNU C compiler... yes* s3 c: n4 B' d1 l; k, s. H" H0 J
checking whether cc accepts -g... yes+ R  ~! ^' Q+ _
checking for cc option to accept ISO C89... none needed" N) A2 D3 j7 s; _: H$ Z9 w
checking how to run the C preprocessor... cc -E* ^$ z9 }9 @- M. n; z2 o- i
checking for icc... no
6 F! u! L) u% ~4 x7 T" Hchecking for suncc... no
" \+ ^4 x0 y1 k: j5 Kchecking for system library directory... lib0 \/ p3 u5 g, r3 `8 [
checking if compiler supports -Wl,-rpath,... yes
: m) h4 D' _/ M4 a, T" ]checking build system type... x86_64-pc-linux-gnu* w/ e; y* F1 p
checking host system type... x86_64-pc-linux-gnu: t$ g4 k' c" ^! r) K
checking target system type... x86_64-pc-linux-gnu
! g9 I) o( n+ K/ lchecking for PHP prefix... /usr/local/php
- u6 x1 ?# K" V" uchecking 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( m, x' _% i4 p( y2 y2 O. a
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-zts-202308311 n( j, a1 L: y0 t% R; a
checking for PHP installed headers prefix... /usr/local/php/include/php& x+ G# K1 m( f# J) i
checking if debug is enabled... no0 X5 s6 R1 }2 G) ~
checking if zts is enabled... yes/ j$ A1 R& A" w) k+ w, G+ ~. d9 L1 u
checking for gawk... gawk0 d: s6 q. t& f) l: h
checking for GNU MP support... yes, shared
2 j, V" I6 J5 v; [+ ]$ |checking for __gmpz_rootrem in -lgmp... no, H# L( b/ @! O3 ]
configure: error: GNU MP Library version 4.2 or greater required.. z) `3 w) j+ Q# b' v! i- l4 d5 _
[root@ipam2 gmp]# yum install -y gmp-dev
9 C) V7 ^( h) J6 I) |- `8 GLoaded plugins: fastestmirror
, {5 ~$ l6 Y! V  u* b3 T0 J8 Q3 ALoading mirror speeds from cached hostfile
. R6 j/ w6 X- ]. }epel/x86_64/metalink                                                                                                                         | 6.4 kB  00:00:00     
# X2 v9 w* x9 T; q * base: ftp.sjtu.edu.cn* i" C9 O! x4 R( j( }" C" |
* epel: ftp.iij.ad.jp
, ^/ f# E1 ?8 f7 v4 W * extras: ftp.sjtu.edu.cn
1 {+ R( R9 {5 o * updates: mirrors.163.com
# i4 Q1 Z; b% |/ R* dbase                                                                                                                                         | 3.6 kB  00:00:00     ! G. O! I" }0 t- T, y( ?
epel                                                                                                                                         | 4.7 kB  00:00:00     
& b% t5 K$ _) C5 ]extras                                                                                                                                       | 2.9 kB  00:00:00     2 M/ }6 w9 y' N5 S
updates                                                                                                                                      | 2.9 kB  00:00:00     
  R( P$ T& m6 Z; \. b3 rNo package gmp-dev available.; \3 s7 d0 a3 L! f5 U
Error: Nothing to do
/ J- k# g+ |% P. {! j( [4 e; @[root@ipam2 gmp]# yum -y install gmp-devel% \4 ?4 A& r* L4 e  N, J1 Y' ^
Loaded plugins: fastestmirror9 P6 U& h: w+ _0 o: h3 }
Loading mirror speeds from cached hostfile3 a. _' o. w: `, w
* base: ftp.sjtu.edu.cn
  ~- ]% a- P; G7 R. N" C * epel: ftp.iij.ad.jp
" O# ~/ M3 W+ X4 k$ L * extras: ftp.sjtu.edu.cn
# b# o: b; c! N; q' W- P * updates: mirrors.163.com
# @/ `; J2 v$ q: n" ~" SResolving Dependencies( j6 e  {# _" M$ ]6 i! @
--> Running transaction check9 d* y% Q: m; Y' z
---> Package gmp-devel.x86_64 1:6.0.0-15.el7 will be installed: O# ?7 q2 t- O6 r8 u; Q8 J
--> Finished Dependency Resolution
' Q2 S) Z' e+ u' C. M1 N7 Z% K
% S" r$ w# B4 |5 t- GDependencies Resolved
( e' v& k2 z/ K
+ G6 o" J( j# a) C- \% m7 W% x====================================================================================================================================================================: f9 I7 B' v, I6 _, r: ?
Package                                 Arch                                 Version                                      Repository                          Size
5 g- g) o. m# i( d/ C4 W====================================================================================================================================================================
- D' h& A  `7 Y! |7 E" j6 DInstalling:, a( S; ]* C+ l9 C2 [8 q* |9 F
gmp-devel                               x86_64                               1:6.0.0-15.el7                               base                               181 k
. r% I" u4 M( `/ P& t# j
* \( c/ Y& _( j6 C0 J( k4 Z0 [Transaction Summary9 z6 p/ Z' G: _  f' ]+ h4 B9 k
====================================================================================================================================================================
, X, g6 v/ v& [8 gInstall  1 Package
3 a' N' L9 J$ x3 A
* m( L, U4 ~( c! O8 v! kTotal download size: 181 k7 r& H/ P) a- T1 f' z
Installed size: 340 k
3 ^( q8 S7 A( s- K. S$ D* c4 aDownloading packages:6 a0 C. o( e6 i  g
gmp-devel-6.0.0-15.el7.x86_64.rpm                                                                                                            | 181 kB  00:00:00     
; i3 k8 q  ~; y# z* O' b# SRunning transaction check1 w; |! v" ^6 X/ x, y
Running transaction test
& e, v; a. M( E  ~- A3 A& T7 G+ C) \Transaction test succeeded
2 N7 S# F, f" l* q* sRunning transaction+ W$ I% @/ @$ k* x
Warning: RPMDB altered outside of yum.
3 m" Y% F; O) ?) m' n* l, l** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
2 D0 G) ?. s0 l, L( J2:postfix-2.10.1-9.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
5 \+ T- ^, o4 e' Q; j& k2:postfix-2.10.1-9.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)( G0 y% y' g7 |1 ^' V' O# b
  Installing : 1:gmp-devel-6.0.0-15.el7.x86_64                                                                                                                  1/1 2 v  F- _2 k' O9 c$ S. Y' y) Z% j
  Verifying  : 1:gmp-devel-6.0.0-15.el7.x86_64                                                                                                                  1/1 % d' A& z2 G  \9 j) }1 P

1 g# j  u" P# JInstalled:2 j$ g% {- I4 T  f0 G
  gmp-devel.x86_64 1:6.0.0-15.el7                                                                                                                                   ' S$ D+ x# J6 I7 T0 J
; f# k2 G* E- u$ k' ^' b8 F
Complete!% T6 G* e# }. r/ R  s0 \4 G7 M
[root@ipam2 gmp]# ./configure --with-php-config=/usr/local/php/bin/php-config 0 ^6 K* z% x* k0 j% L: u
checking for grep that handles long lines and -e... /bin/grep9 ], w( L; k3 ~/ |7 k& [
checking for egrep... /bin/grep -E
8 q6 C' g5 ]- Ychecking for a sed that does not truncate output... /bin/sed9 S" B/ D9 Z8 a: z
checking for pkg-config... /bin/pkg-config
6 b$ X4 d/ i% S% _( `8 ychecking pkg-config is at least version 0.9.0... yes2 H, X; W4 V7 h. K6 O! Y4 K8 Y
checking for cc... cc3 A9 L6 Y+ G8 X) u% N% [
checking whether the C compiler works... yes# @9 R9 L6 {/ Z) c; N; \
checking for C compiler default output file name... a.out/ z1 V" U/ Q- f1 X/ [
checking for suffix of executables...
$ F# k+ a, P3 {% e# X0 Nchecking whether we are cross compiling... no6 s3 j) d+ E& H2 Z/ p0 V3 }- |0 M
checking for suffix of object files... o/ k' {: ?! N# x' ?% @% i5 ^
checking whether we are using the GNU C compiler... yes
7 P# W4 `) W$ k& D9 g$ Zchecking whether cc accepts -g... yes
- d2 P% n9 \4 |% @6 Ychecking for cc option to accept ISO C89... none needed3 j& a! [+ w' b) \( Y9 j1 }+ P" D
checking how to run the C preprocessor... cc -E4 @  l- o$ m5 [& o. y% }1 z9 l
checking for icc... no, u- N2 z1 t$ f
checking for suncc... no
. R  z3 ?$ M9 b& `% mchecking for system library directory... lib
4 P2 h: T: I1 x: Kchecking if compiler supports -Wl,-rpath,... yes9 t% {% h* K; a, [7 N6 E! H
checking build system type... x86_64-pc-linux-gnu+ b0 X  R* t& j' d0 j; h
checking host system type... x86_64-pc-linux-gnu+ V) K0 ?, C, y
checking target system type... x86_64-pc-linux-gnu9 t! k9 W$ x' F8 k# @" s% M
checking for PHP prefix... /usr/local/php# ^: c- _' e+ N0 }
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
9 X9 x  t7 ?" K1 R/ qchecking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-zts-20230831
: o( n. H. K1 X" kchecking for PHP installed headers prefix... /usr/local/php/include/php7 n; ]& C% x9 x6 X7 \
checking if debug is enabled... no
9 {4 C- a3 f1 A/ n  [% y% l. K, t6 mchecking if zts is enabled... yes9 C0 n' w( M0 R4 U& g# N
checking for gawk... gawk; u0 U& R4 a; x6 b5 }- b- I
checking for GNU MP support... yes, shared: y% Q. t' y- w' A: c# @: D
checking for __gmpz_rootrem in -lgmp... yes
# V8 [# r3 \! c2 s' C! z) tchecking for a sed that does not truncate output... /bin/sed" i4 }! L- R3 C8 C. P
checking for ld used by cc... /bin/ld2 J& X! t% {5 s0 e* i8 Q2 C3 ^
checking if the linker (/bin/ld) is GNU ld... yes2 I5 r! O5 l8 i0 g8 r& @8 e6 p/ ^, i
checking for /bin/ld option to reload object files... -r( W- x! L  \" h  h
checking for BSD-compatible nm... /bin/nm -B3 l. F  O5 c2 T$ U2 M1 S
checking whether ln -s works... yes
' \6 L% ]0 _$ b% z$ hchecking how to recognize dependent libraries... pass_all
: L- ]: a8 U3 l% J# L9 j. Ychecking for ANSI C header files... yes2 L7 d, P; ^1 W
checking for sys/types.h... yes
) f/ L4 |5 {  e# q1 }( I: n" e' bchecking for sys/stat.h... yes0 N8 o/ V( |* ^+ D1 x, @$ @- ~' d- h8 z
checking for stdlib.h... yes# |8 C: B1 i  t  o# _
checking for string.h... yes" @# b4 g9 K9 Q/ d$ t3 d  A
checking for memory.h... yes  \8 h0 [3 D# o# `3 U* ]0 p
checking for strings.h... yes
- C0 z! X* K: n- L. qchecking for inttypes.h... yes' D# k+ b. C- c) w- I2 {$ r
checking for stdint.h... yes
' n5 C9 l0 Y4 d8 \+ T' Dchecking for unistd.h... yes
! o: {0 m# x9 n: C+ j* ^% G: Z; ichecking dlfcn.h usability... yes1 u& |# M& e* m$ q
checking dlfcn.h presence... yes* n+ Y$ E1 G: _* Y3 c
checking for dlfcn.h... yes
' k) G  Y- S1 F# t  @; ~- M" O% Fchecking the maximum length of command line arguments... 1572864: s9 ^; ?/ H0 q' u/ `1 q. c
checking command to parse /bin/nm -B output from cc object... ok! x5 H6 T$ C6 z5 R4 }, P
checking for objdir... .libs+ A) j, r' S) E8 d7 l. [" [% F4 I/ B
checking for ar... ar8 t  J' i2 u: C4 f' G6 c( j
checking for ranlib... ranlib
9 H/ S; S, }. a, w: \checking for strip... strip7 K" `' c1 A. O" f, d
checking if cc supports -fno-rtti -fno-exceptions... no
, x# z' u% p% l+ Zchecking for cc option to produce PIC... -fPIC* H0 b- o4 V/ T
checking if cc PIC flag -fPIC works... yes
% d* t/ f6 J6 b$ G& H2 }- b. ichecking if cc static flag -static works... no
8 d5 U. z+ r) u: G! U  achecking if cc supports -c -o file.o... yes
; k6 [% ~7 t$ _$ y0 ?$ G! @checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
% @, f8 ~$ b6 U% }checking whether -lc should be explicitly linked in... no
! X% ]# _! L" N% \( achecking dynamic linker characteristics... GNU/Linux ld.so
' d2 ^) }& h; D% n4 Fchecking how to hardcode library paths into programs... immediate+ K9 i: ^) ]3 W" w2 ~; t6 _
checking whether stripping libraries is possible... yes
8 F5 m- t9 @/ h1 ~% `3 K/ l. @4 g  Ychecking if libtool supports shared libraries... yes' [* T0 j  @7 V4 ?& d' ~& p
checking whether to build shared libraries... yes# I  m) a2 I2 Z+ e- E9 j0 Y+ P
checking whether to build static libraries... no$ @* U- }4 Y( k9 [. v

5 r# Y) h$ ?7 F  o$ w6 ccreating libtool2 F$ r3 v" O' b" a, Z9 x0 k
appending configuration tag "CXX" to libtool
% t  u7 q% p* m+ U1 cconfigure: patching config.h.in; g0 D1 Q3 g, Q% C) A8 k
configure: creating ./config.status+ P# Z& ~1 l0 L5 h2 o( v7 [* p: P- ]
config.status: creating config.h
' i/ ?" {, J4 q+ y4 B* Q# f$ V
! k0 F: c3 T1 x! X. }$ `
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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