|
|
checking for unistd.h... (cached) yes3 F z- @2 r0 @
configure: error: Cannot find ldap libraries in /usr/lib.. O. |+ k$ B0 A9 j/ ?' s) A
解决办法:) m; L8 x: L3 H9 S/ s
4 @7 [& `5 X7 X3 i
yum install -y libldb-devel& m N' `4 V; q$ v- ~* E
8 D4 [8 y+ o- Y0 \& s& Q
安装完成之后,再复制:
$ G! p! C% U- z cp -rfp /usr/lib64/libldap* /usr/lib/
2 j6 B. W: s( v' R- h/ k/ Q; b) D9 T9 y# [9 D& D* j Y$ B
再编译就成功了。% ?/ D7 O9 t" V
./configure --with-php-config=/usr/local/php/bin/php-config
. i" a5 z: W# n7 c. vchecking for ldap_parse_result... yes
; s7 N6 n; T9 S+ N/ ^checking for ldap_parse_reference... yes
3 p; e: p1 Y$ e4 `0 j2 h; [' y( lchecking for ldap_start_tls_s... yes
: o2 K* O. N# m! T# m1 A7 b8 rchecking for ldap_control_find... yes/ ^- O) f7 N' N1 |/ k
checking for ldap_parse_extended_result... yes
j- T" p+ M% p1 g7 v7 hchecking for ldap_extended_operation... yes1 R( n1 m* H: h
checking for ldap_extended_operation_s... yes
- ?6 q: W+ j+ W$ V; D' L6 {checking for ldap_passwd... yes
6 E6 O2 d- n! a3 t# @: Cchecking for ldap_whoami_s... yes
5 F. A$ m( k3 Q4 Wchecking for ldap_refresh_s... yes
8 J" r4 c7 [2 V5 s2 qchecking for ldap_bind_s... yes
+ |2 V. t* m6 F" g; y. A7 Y: U3 Z; gchecking for a sed that does not truncate output... /bin/sed1 O9 M: m. ^7 T$ r! u. w9 `
checking for ld used by cc... /bin/ld
8 I& s' l. i. y nchecking if the linker (/bin/ld) is GNU ld... yes
2 K6 A/ q5 F3 P& E* D f" |& }- H9 Xchecking for /bin/ld option to reload object files... -r: n7 d- A1 E) N$ ~( ]' A
checking for BSD-compatible nm... /bin/nm -B) q/ T2 A7 c7 H! C h, d, a7 W
checking whether ln -s works... yes
( L9 J, d% a: ]+ cchecking how to recognize dependent libraries... pass_all
0 `) j& I5 G$ e8 @6 ?& ~ E2 Dchecking dlfcn.h usability... yes
0 K0 E7 V5 i) x8 pchecking dlfcn.h presence... yes
1 I: Q( l6 W l: v( L5 B! U) K8 M5 ^checking for dlfcn.h... yes
7 v5 J) d1 @: [( P9 m- d4 O5 Fchecking the maximum length of command line arguments... 1572864
% C3 [2 ~0 T! D8 r: `checking command to parse /bin/nm -B output from cc object... ok0 i: ~0 `3 j' ?: L
checking for objdir... .libs
: g4 K& P4 k K3 s3 ^* Gchecking for ar... ar' a2 Z4 |" w) s; |: L. B
checking for ranlib... ranlib
. | t9 |0 G/ G" Mchecking for strip... strip& V7 L/ Q$ t3 q4 g B
checking if cc supports -fno-rtti -fno-exceptions... no
$ d5 ?1 `# ?) @( Q9 E- v3 Cchecking for cc option to produce PIC... -fPIC) h. F6 a" ?" d
checking if cc PIC flag -fPIC works... yes
/ L8 |8 x4 {+ N! G" V+ [& tchecking if cc static flag -static works... no7 b. G" N: P- r: X) @0 b9 p" U9 G7 o; f. Y
checking if cc supports -c -o file.o... yes
* m0 v9 |0 m9 B% h4 v# Xchecking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
9 ?- o3 [$ G+ j) t0 F4 vchecking whether -lc should be explicitly linked in... no
# h# ?! d" D( Q8 A Dchecking dynamic linker characteristics... GNU/Linux ld.so* S9 d; J4 B! z/ K: L, ]$ l2 T
checking how to hardcode library paths into programs... immediate
7 U! I! {% `6 o. o4 P: z5 ?checking whether stripping libraries is possible... yes
, Z3 D" ` @' y3 [# Fchecking if libtool supports shared libraries... yes1 K1 q U0 ^1 N( z( y! x
checking whether to build shared libraries... yes
) a$ b: j( \% q4 @" Q7 ~4 p5 }checking whether to build static libraries... no4 r' ]* c/ f1 t. u( F
% G' z% S% [6 n9 _( `5 W. i
9 u, {2 {/ o% T/ ^成功解决。
; x \" l6 D0 r, l5 `# a! z" \: C9 x% J( r
, F) G) {* I. I+ r
|
|