|
|
checking for unistd.h... (cached) yes
u* d+ t" R t! E; c. S/ fconfigure: error: Cannot find ldap libraries in /usr/lib.9 C: S* G$ k8 z5 w) r& e7 l7 s
解决办法:% m2 V- X% ]5 j- g6 X4 p/ b. l0 Y
* K/ E- T5 q4 y) v) m' U
yum install -y libldb-devel
$ B+ d8 I5 f4 T
" R8 B- G, Y/ N& |/ e+ c安装完成之后,再复制:: w! g, n. P( e) k# B$ ~
cp -rfp /usr/lib64/libldap* /usr/lib/$ Y! Z: g2 k' ~& [* a0 [* X
/ n& Z# \' B; [) D4 {' L/ z0 s再编译就成功了。$ B8 w+ B4 H6 V8 `% [ v& Z0 w4 ~ q
./configure --with-php-config=/usr/local/php/bin/php-config % e) f% c! i( ]; S
checking for ldap_parse_result... yes
% H* S% {/ N- a- f; g9 Fchecking for ldap_parse_reference... yes
) Y$ ^ v K* \5 ]checking for ldap_start_tls_s... yes: ^3 y3 D" t& e8 {) [0 T
checking for ldap_control_find... yes
- m$ D8 u- U4 b$ B$ fchecking for ldap_parse_extended_result... yes
! y, c; E3 X$ g% D. r8 e& a$ ~checking for ldap_extended_operation... yes
" C& K3 ?& z y/ U0 Xchecking for ldap_extended_operation_s... yes, ^. [3 k; k" Y9 ]' p2 a
checking for ldap_passwd... yes4 i* D9 v- D+ k3 w- b) O3 |& {: H9 A
checking for ldap_whoami_s... yes# u+ k: B6 u/ e& c0 p8 Q% c' e9 w
checking for ldap_refresh_s... yes
# v( t# A5 c. Y: Schecking for ldap_bind_s... yes
# g5 w+ [: x( R0 w+ p. bchecking for a sed that does not truncate output... /bin/sed' M5 t7 x: d3 B3 w! E1 F+ w
checking for ld used by cc... /bin/ld
' a0 J& O1 \3 m3 \) Q2 ^% N. Lchecking if the linker (/bin/ld) is GNU ld... yes
5 q% b! @. X6 @6 L3 ^& ]: Ochecking for /bin/ld option to reload object files... -r \7 }3 e3 @6 T' B& y/ }
checking for BSD-compatible nm... /bin/nm -B
% ^. U0 _# \& E. g! B: r- Y, w1 ?checking whether ln -s works... yes$ b3 Y* E3 K6 J3 b0 x
checking how to recognize dependent libraries... pass_all: z% | x/ z/ h: b1 ^1 T
checking dlfcn.h usability... yes& w% V) g3 {3 [# R) \
checking dlfcn.h presence... yes
6 m) W! e0 g V6 g% H6 Ichecking for dlfcn.h... yes# ^" b$ i# @3 R* `/ A3 s5 N) \
checking the maximum length of command line arguments... 15728645 r" o+ v" I, {
checking command to parse /bin/nm -B output from cc object... ok
5 d+ z' [5 f* Pchecking for objdir... .libs
, O( m* ?5 F0 ~! b# Y, Uchecking for ar... ar) w$ K$ _# P! u' j# c% w7 t
checking for ranlib... ranlib
3 }* \0 A) H, h+ ?checking for strip... strip
; a, E Y- E1 X! _/ M, @2 ~0 B5 ~checking if cc supports -fno-rtti -fno-exceptions... no; J; G k6 D* }) v; p8 w) k' z; {
checking for cc option to produce PIC... -fPIC* @5 g* e& r* ? R
checking if cc PIC flag -fPIC works... yes
0 H+ Y& U7 h! A0 ?7 h9 {checking if cc static flag -static works... no4 e9 y& z9 Y3 z G2 U& }; s6 h
checking if cc supports -c -o file.o... yes' T& h9 C! ]% q. {5 o* j! q% \! _
checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes% S: Q9 o1 C: v& ^' A2 [3 g
checking whether -lc should be explicitly linked in... no. p$ O' V4 N- D. |* }1 H0 z1 @
checking dynamic linker characteristics... GNU/Linux ld.so
% X& O3 ^. _. I& \- P. Vchecking how to hardcode library paths into programs... immediate
) t8 a2 F/ u+ \# t) l3 ^& N- vchecking whether stripping libraries is possible... yes
% s" r9 ~' w) {* J( ~checking if libtool supports shared libraries... yes0 {6 v' L; D' P* d3 n; Z# T
checking whether to build shared libraries... yes* }, m/ ^7 K$ s/ _/ D
checking whether to build static libraries... no
+ L- \6 N* z1 n" O c4 j I6 f* h4 B' Y& d4 o3 Z7 _* J' Z
3 P% q6 }7 S# @6 B: w- T' Q
成功解决。
% x+ ]- w f. F, S0 v3 k/ U, ] Z: x; i) @' e5 H
7 S0 H9 m$ @- n3 x |
|