易陆发现互联网技术论坛

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

make: *** [sapi/phpdbg/phpdbg] Error 1 php 安装报错

[复制链接]
发表于 2024-1-12 17:00:00 | 显示全部楼层 |阅读模式

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

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

x
/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'
# f1 ]# m9 }" C0 z; e0 J  R0 K! e. c//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line* N7 L) Q# Q: a9 ]4 q# q* U7 {
collect2: error: ld returned 1 exit status6 _2 a8 r, @3 l0 Y: P7 {2 N
make: *** [sapi/phpdbg/phpdbg] Error 1) d- h$ L, y) o
make: *** Waiting for unfinished jobs....
- i' R, U+ {) ?# i" e4 p( v, v. u/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'
1 e8 ]* ?2 e; l+ K' [//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line1 V7 `# x& v9 s0 B" V: n% b: _
collect2: error: ld returned 1 exit status
$ x& D. h! x, j4 J  ~make: *** [sapi/cli/php] Error 10 i8 s" q0 F( ~
/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'1 B- @( U; ?! Q/ K2 @5 q
//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line# t" g* Q3 ?3 K; C( H3 u
collect2: error: ld returned 1 exit status; C# n/ [( Z9 Y7 I  h6 a' ^/ M
/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'
2 f* O5 `+ e0 a1 s% t, v//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line" a+ D8 A4 B6 A& i) z# `" d) |4 k
collect2: error: ld returned 1 exit status
5 [* N$ }& H* x/ M0 t# U) lmake: *** [sapi/fpm/php-fpm] Error 1
! M7 M/ w9 D! }make: *** [sapi/cgi/php-cgi] Error 14 {1 d( n7 l& s4 `- d8 `5 c5 A
$ R2 `3 X! ^, \3 R6 J! J5 V6 r
 楼主| 发表于 2024-1-12 17:00:01 | 显示全部楼层
ln -s /usr/lib64/liblber.so /usr/lib/liblber.so  做链接
 楼主| 发表于 2024-1-12 17:00:02 | 显示全部楼层
在PHP源码目录下 vi Makefile 打开文件,找到 EXTRA_LIBS 行,在行末添加 -llber
0 h6 h. Q* X1 y8 `7 Z% I' ?2 Z; w5 P6 k! \: k  Z7 H1 Z" H! M
EXTRA_LIBS = -lresolv -lreadline -lncurses -lrt -lldap -lgmp -lbz2 -lutil -lrt -lm -ldl -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lssl -lcrypto -lz -lpng15 -lonig -lsqlite3 -lxml2 -lxml2 -lxml2 -lxml2 -lxml2 -lxslt -lz -ldl -lm -lxml2 -lexslt -lxslt -lz -lm -lgcrypt -ldl -lgpg-error -lxml2 -lzip -lbz2 -lz -lz -lssl -lcrypto -llber
) Z. y' Z5 g) B$ h+ J) E5 q& s' X0 p% ~# K3 F8 {
保存退出再次make即可0 d5 d  T! I: R

9 B6 p% H; H( ~  M" t1 b) C$ Fmake -j 12& K+ C* |  R/ J7 k" v
9 _! t. W! r$ c( G
Build complete.
- a& D8 v8 j2 EDon't forget to run 'make test'.
1 d4 ^2 n  o4 G* Y, A+ a) a: M
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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