Compilar php 4.4 con ldap en centOs

Instrucciones de compilación
./configure --with-ldap

BUG 1) configure: error: Cannot find ldap libraries in /usr/lib.
./configure --with-ldap= /usr/lib64 --with-lib=lib64

BUG 2) configure: error: Cannot find ldap.h

Editamos el archivo configure y añadimos la siguientes lineas

if test -f $PHP_LDAP/include/ldap.h; then
   LDAP_DIR=$PHP_LDAP
   LDAP_INCDIR=$PHP_LDAP/include
   LDAP_LIBDIR=$PHP_LDAP/lib
elif test -f $PHP_LDAP/include/umich-ldap/ldap.h; then
   LDAP_DIR=$PHP_LDAP
   LDAP_INCDIR=$PHP_LDAP/include/umich-ldap
   LDAP_LIBDIR=$PHP_LDAP/lib
elif test -f $PHP_LDAP/ldap/public/ldap.h; then
   LDAP_DIR=$PHP_LDAP
   LDAP_INCDIR=$PHP_LDAP/ldap/public
   LDAP_LIBDIR=$PHP_LDAP/lib
fi
   LDAP_DIR=/usr/lib64
   LDAP_INCDIR=/usr/include
   LDAP_LIBDIR=/usr/lib64
fi
 

Comentarios

Entradas populares de este blog

Oracle : Tablas y objetos bloqueados