找回密码
 注册
查看: 10|回复: 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) yes- X9 U  `) E/ Y5 _% `" Q5 ]# W0 b
configure: error: Cannot find ldap libraries in /usr/lib./ Z' v% z% V2 }- n: a( T( s
解决办法:
' \7 D7 p3 F. ^. ?& m" L, Z# p. Q
' `" X7 M1 P, r yum install -y libldb-devel) ]  _" f. \% A0 W

) l4 l4 ~8 i1 T: F安装完成之后,再复制:. i0 F4 `+ Q& G2 |( o2 Z
cp -rfp /usr/lib64/libldap* /usr/lib/
) k* r3 ?! N6 d* D8 t# E
3 ?! c: O; `: V1 H( X9 w( ]' |$ w再编译就成功了。: ^% m- Y' t4 n6 ~5 n3 Z
./configure  --with-php-config=/usr/local/php/bin/php-config 5 r- r8 c5 W: Y( \$ ~/ P
checking for ldap_parse_result... yes, a$ Q2 U1 d$ X
checking for ldap_parse_reference... yes
, i; [' N$ {3 c' W8 e7 _checking for ldap_start_tls_s... yes; O+ x* u7 t5 X+ M' ?: }$ c
checking for ldap_control_find... yes( e! X2 S, v7 q6 W: p
checking for ldap_parse_extended_result... yes& j" r1 Y* G3 h9 L1 P& I
checking for ldap_extended_operation... yes
$ Z( h5 G# X( j. `7 mchecking for ldap_extended_operation_s... yes$ S  ~5 }2 j; c5 }7 y3 C/ g1 b
checking for ldap_passwd... yes
0 _, k7 Y* s2 J% r& [checking for ldap_whoami_s... yes
! V& |6 r0 D. w) E- }( gchecking for ldap_refresh_s... yes
7 r& [% K8 {# m1 ~6 tchecking for ldap_bind_s... yes
4 E  _( c" N8 {4 C1 K4 ^6 z" L! Qchecking for a sed that does not truncate output... /bin/sed
1 P4 R6 ?4 w% H  C5 U0 @! Pchecking for ld used by cc... /bin/ld! p0 _1 {( q) d0 e( a2 _
checking if the linker (/bin/ld) is GNU ld... yes
. V. B# n0 d) ?9 schecking for /bin/ld option to reload object files... -r& X, E: J+ t& O" u% W5 K. Q* [+ D
checking for BSD-compatible nm... /bin/nm -B
. u6 t" D2 d% `& f0 u0 s  schecking whether ln -s works... yes+ F7 s5 p# C" @  x% V# h
checking how to recognize dependent libraries... pass_all3 y; w) B+ V* z' `9 a
checking dlfcn.h usability... yes
4 d" T: Q- B6 G% _' t# \checking dlfcn.h presence... yes
% z8 n( `3 a1 }checking for dlfcn.h... yes9 I+ Y9 j% ]. C2 C+ G+ ?4 i  P
checking the maximum length of command line arguments... 1572864
, r' q7 c% C2 q. l, n- Hchecking command to parse /bin/nm -B output from cc object... ok/ @$ w+ w; I' Z( N. N, e( K
checking for objdir... .libs
7 \6 x7 d7 L7 i# f" b7 \checking for ar... ar
  a3 A4 t) `* c7 v, g  {checking for ranlib... ranlib- V" k, v4 z: [3 n2 L2 Q" i
checking for strip... strip& M2 x: a0 a$ P+ b
checking if cc supports -fno-rtti -fno-exceptions... no' S6 O) b. v% P* d- O; Y
checking for cc option to produce PIC... -fPIC8 o- [5 `% z7 {  Z- h+ H
checking if cc PIC flag -fPIC works... yes
) H2 a# ?$ I+ u6 p7 ?8 K) uchecking if cc static flag -static works... no
9 P6 }5 y* \  W, h7 U7 Cchecking if cc supports -c -o file.o... yes  z/ D- ^+ C" U, i; G
checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes2 V" f, V9 R# V4 Z; m
checking whether -lc should be explicitly linked in... no
" [  ]  _+ l, X( `' v: lchecking dynamic linker characteristics... GNU/Linux ld.so
8 i( t) G% ?7 m3 S7 Schecking how to hardcode library paths into programs... immediate
" ^* O) [8 o+ x2 Nchecking whether stripping libraries is possible... yes. z; t! @, D" k( g- d
checking if libtool supports shared libraries... yes5 L' a7 g9 z) B: G
checking whether to build shared libraries... yes+ P3 Z& o; R6 P6 D" i8 H
checking whether to build static libraries... no0 _& r/ r: l4 N  h" D

& x- W# I! u* F0 L/ |6 B+ ~% n) ]* A1 E/ ^& X3 m6 F
成功解决。
0 T) ^* Y% [$ O
! w& b0 m, l6 v5 R- A  {' Y  l4 e' S# [7 F
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 03:04 , Processed in 0.020669 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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