找回密码
 注册
查看: 4|回复: 2

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-1-12 17:00:00 | 显示全部楼层 |阅读模式
/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'3 ~- V! j1 ?7 v* R2 E; o
//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line7 r* K6 v" l+ q5 B
collect2: error: ld returned 1 exit status, J3 H  o& D3 i8 T
make: *** [sapi/phpdbg/phpdbg] Error 1
% f; [4 t. t" h9 g* k9 b( Tmake: *** Waiting for unfinished jobs....
3 M0 b5 J1 }$ c/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'" A! H  q; _9 X; Z, O
//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line
4 Z5 N0 K. n% {/ F6 e/ J7 i9 @collect2: error: ld returned 1 exit status$ R& x6 o4 B) U
make: *** [sapi/cli/php] Error 1
9 t5 Q7 J9 i: g" E& ^9 X/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'3 @6 b6 B: A9 {# C% B) A1 R( _% d
//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line
+ H3 [- Z" E8 E3 A# N$ Ccollect2: error: ld returned 1 exit status) S2 V$ w5 L7 M; ~" k1 g" Z
/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'
' V5 Q# T& J7 P# S//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line
. h- w! y" ]' t0 j( N8 B4 xcollect2: error: ld returned 1 exit status! e) P) _) B- o  d- Z
make: *** [sapi/fpm/php-fpm] Error 1
3 q( Y6 w: ~: F. T+ |make: *** [sapi/cgi/php-cgi] Error 1& V* X3 b* ~% e; c9 n9 Y

- v( k/ j, v" T, }9 o

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-1-12 17:00:01 | 显示全部楼层
ln -s /usr/lib64/liblber.so /usr/lib/liblber.so  做链接

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-1-12 17:00:02 | 显示全部楼层
在PHP源码目录下 vi Makefile 打开文件,找到 EXTRA_LIBS 行,在行末添加 -llber 1 O, o- {' Z. M# H. o  @- Q

: H4 R8 {; p6 t$ ^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
0 \1 S* n9 M' I
4 b0 b0 V+ q6 y* V9 O保存退出再次make即可
! z8 {$ Y. [3 s5 V0 O) ]/ g  Q' Q) m/ V# L
make -j 12
# @  T: `* v$ B
; k+ h' u9 B; x" _+ e7 h: T9 ]7 ZBuild complete.
1 [6 G) l& @% `' D! sDon't forget to run 'make test'.7 p0 F4 W9 Y2 V/ |
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:48 , Processed in 0.013989 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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