One, PHP configure:error:Cannot find LDAP libraries In/usr/lib
Compile and install PHP5.4.8 under CentOS 64-bit today. The result is a hint when configure
Configure:error:Cannot Find LDAP Libraries In/usr/lib
It is suggested that the relevant module cannot be found under/usr/lib, because the 64-bit Linux default puts the above files in the/usr/lib64 folder.
Workaround:
Copy the Code code as follows:
cp-frp/usr/lib64/libldap*/usr/lib/
Re-configure can be
Second, pdo_mysql make: * * * [Pdo_mysql.lo] Error 1
Compile and install the Pdo_mysql extension module, always prompt:
Copy the Code code as follows:
In file included from/data0/software/pdo_mysql-1.0.2/pdo_mysql.c:31:
/data0/software/pdo_mysql-1.0.2/php_pdo_mysql_int.h:25:19:error:mysql.h:no such file or directory
In file included from/data0/software/pdo_mysql-1.0.2/pdo_mysql.c:31:
/data0/software/pdo_mysql-1.0.2/php_pdo_mysql_int.h:36:error:expected specifier-qualifier-list before ' MYSQL '
/data0/software/pdo_mysql-1.0.2/php_pdo_mysql_int.h:48:error:expected specifier-qualifier-list before ' MYSQL_ FIELD '
/data0/software/pdo_mysql-1.0.2/php_pdo_mysql_int.h:53:error:expected specifier-qualifier-list before ' MYSQL_RES '
Make: * * * [Pdo_mysql.lo] Error 1
This is because this is a file that requires MySQL's header at compile time. This problem occurs because it does not find the location of the header file by default search. The MySQL header file is mapped to/usr/local/include/via a soft connection.
For example, if your MySQL installation file is located in/usr/local/mysql, then execute the following command:
Copy the Code code as follows:
# ln-s/usr/local/mysql/include/*/usr/local/include/