找回密码
 注册
查看: 3|回复: 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'
$ ?6 m! r# ~) p//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line, B/ _$ Y! J7 x
collect2: error: ld returned 1 exit status
( ?5 L9 p. r% v5 _1 D. U5 Y1 N0 emake: *** [sapi/phpdbg/phpdbg] Error 1
8 J: y$ b( O5 ?( Z5 g: Lmake: *** Waiting for unfinished jobs....1 P  b: |  i2 D
/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'; _) \1 Y9 Z( q+ |+ ]5 C( U7 \2 T3 f& y  \
//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line1 e& V  _+ f' f1 }2 g
collect2: error: ld returned 1 exit status
% @  {; J- E, P4 B6 c; smake: *** [sapi/cli/php] Error 1
' Q+ E, \+ w; T" r/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'9 d( W. M* N! x" }: F
//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line
1 p' }$ K5 [) p. i7 Ncollect2: error: ld returned 1 exit status( a3 `6 C6 b5 S2 Y7 K
/bin/ld: ext/ldap/ldap.o: undefined reference to symbol 'ber_memfree'
& y$ m& V: k/ e! l) a" T//usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line
" w; a+ q4 e' g5 D4 \collect2: error: ld returned 1 exit status# ?+ C  I* h" {4 ^1 ~, W) o
make: *** [sapi/fpm/php-fpm] Error 1
& ^9 Q3 m( c6 j: E8 ^make: *** [sapi/cgi/php-cgi] Error 1
; ?4 G' d! H8 N, p/ a0 A% C3 _6 E* S, T$ m8 E% j& V' b. i- ^* c

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 7 ^, r9 q' Y( k- z& ^  a

0 V3 q4 Q- ?0 VEXTRA_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
9 ?" S1 N8 Z9 h7 w1 G
" y- J' k5 x5 o$ O" h& m保存退出再次make即可
, S3 z3 b4 q- z0 C0 f* R
  I) J: k% E* s& J) rmake -j 12
. j/ Z0 e. x) w3 X" |2 r& K9 X" p# O5 S( f; D
Build complete.
2 |5 w2 B$ V# B; P! S5 H2 @6 EDon't forget to run 'make test'.: j2 G6 P- d+ m
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:41 , Processed in 0.017443 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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