First, PHP Configure:error:Cannot find LDAP Libraries In/usr/lib
Today, the installation PHP5.4.8 is compiled under CentOS 64 digits. The results were prompted at the time of configure
Configure:error:Cannot Find LDAP Libraries In/usr/lib
Hint that the relevant module could not be found under/usr/lib, because 64-bit Linux defaults to the above files in the/usr/lib64 folder.
Workaround:
Copy Code code as follows:
cp-frp/usr/lib64/libldap*/usr/lib/
You can configure it again.
Ii. pdo_mysql Make: * * * [Pdo_mysql.lo] Error 1
Compile and install Pdo_mysql expansion module, always prompt:
Copy 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 the file is required for MySQL headers at compile time. It does not find the location of the header file by default search, so this problem occurs. Through the soft connection to the MySQL header file corresponding to the/usr/local/include/.
For example, if your MySQL installation file is located in/usr/local/mysql, execute the following command:
Copy Code code as follows:
# ln-s/usr/local/mysql/include/*/usr/local/include/