找回密码
 注册
查看: 5|回复: 0

php编译ldap模块checking for unistd.h... (cached) yes configure: error: Cannot find l

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-1-10 17:04:37 | 显示全部楼层 |阅读模式
checking for unistd.h... (cached) yes9 f' M' u6 C& R( r
configure: error: Cannot find ldap libraries in /usr/lib.9 E7 ?0 G" X5 S( w0 H
解决办法:6 F6 v  t7 T5 }* Y9 ^, H
* b+ ?! c+ D7 O3 ~
yum install -y libldb-devel
% W6 w6 M7 K6 U" k! j  d
8 ~; T) H9 [. U2 m  O: J3 J9 Z. V# U$ H安装完成之后,再复制:/ c8 C7 Y; b' G7 Q! D, G* n$ K
cp -rfp /usr/lib64/libldap* /usr/lib/
/ q5 H0 {- m" l/ Z; J/ d" D; e# d( {
再编译就成功了。
$ w; ?* o8 x% y! u, l9 c; {: t ./configure  --with-php-config=/usr/local/php/bin/php-config . d4 {# J6 C: c: ?+ E3 ]; T8 Q  c
checking for ldap_parse_result... yes
/ J8 K- d0 p) B& echecking for ldap_parse_reference... yes: k, z# F2 }! @5 u$ A  m
checking for ldap_start_tls_s... yes
& H1 U; y* G5 M' d1 k% k9 a7 ?3 echecking for ldap_control_find... yes0 ?7 M- ]; H7 l
checking for ldap_parse_extended_result... yes
+ {9 D0 A& q8 P% T9 B; }; @% rchecking for ldap_extended_operation... yes
; ?* U( F& @& }2 [- G: `; V. D6 gchecking for ldap_extended_operation_s... yes
, d9 r0 W7 @5 A8 O. pchecking for ldap_passwd... yes8 B5 A' g9 D; e; C# Q! o; X
checking for ldap_whoami_s... yes
0 b/ F; p/ P$ @8 s. Nchecking for ldap_refresh_s... yes
# q9 b; g" h5 f5 w0 d* t" Jchecking for ldap_bind_s... yes
* Q; a) j; p0 fchecking for a sed that does not truncate output... /bin/sed
5 m' e% }$ _, qchecking for ld used by cc... /bin/ld
% O3 R; _, M) x7 t5 X" o" Z+ x0 Q& Jchecking if the linker (/bin/ld) is GNU ld... yes" Z) @0 D9 n; C9 }
checking for /bin/ld option to reload object files... -r' q  f1 t( z1 j  j
checking for BSD-compatible nm... /bin/nm -B
8 L- W9 X% u9 T% l- v7 ]1 Vchecking whether ln -s works... yes
! e* A  f7 s# {3 _' K7 W0 \checking how to recognize dependent libraries... pass_all
+ [0 O: b  N. K' mchecking dlfcn.h usability... yes, n  Q& v* {+ F% d
checking dlfcn.h presence... yes) {" g# k9 |7 O+ q) I) `% B
checking for dlfcn.h... yes7 N1 b, E" }: P: F& H
checking the maximum length of command line arguments... 1572864
) G+ h: @1 I* {* H# t; m9 Ichecking command to parse /bin/nm -B output from cc object... ok
% d4 m9 d1 e' t1 rchecking for objdir... .libs; e" [2 j" K" E, b$ r
checking for ar... ar; |4 K. J3 ^; l; ~; }
checking for ranlib... ranlib; B' |7 z0 ]0 ?9 t5 r
checking for strip... strip5 n8 X* b4 K$ A
checking if cc supports -fno-rtti -fno-exceptions... no# V  y+ I4 D6 X4 P! v
checking for cc option to produce PIC... -fPIC
8 Y3 d+ r$ ?, l! o7 l8 \+ H" l+ jchecking if cc PIC flag -fPIC works... yes
" c' M- j  `1 k: }checking if cc static flag -static works... no! A. I4 R( v8 l/ ~1 T" u+ H5 i
checking if cc supports -c -o file.o... yes9 O+ j8 f  l: l% @' Y
checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes5 U6 L& _* R! `  m3 r! x0 A
checking whether -lc should be explicitly linked in... no
: l( M6 G- F7 f& K% |" Q' i, M  ]checking dynamic linker characteristics... GNU/Linux ld.so5 Y* E1 d% D7 K/ d) _& @  x- ^
checking how to hardcode library paths into programs... immediate
3 B# ^; X, G! w- p: ~checking whether stripping libraries is possible... yes
3 P2 ^: G1 S% ^; bchecking if libtool supports shared libraries... yes) I! M, i  ^( R7 T3 D- S
checking whether to build shared libraries... yes/ X  b9 a* D2 [
checking whether to build static libraries... no5 ^3 M; Z% R1 g$ ?, w0 n

. g( ^6 p  V7 T. T4 S3 h. s5 q5 t- R: r
成功解决。- {2 d4 A: |5 R9 ]
0 x; B/ Z' d* B2 z

0 p; o% g! D4 S( k0 G5 K) k) s( k
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:46 , Processed in 0.017231 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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