What are the errors encountered in PHP compilation and installation
This article mainly shows you the "PHP compilation and installation of errors will be encountered", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn what errors will be encountered in the compilation and installation of PHP "this article.
1. PHP configure: error: Cannot find ldap libraries in / usr/lib
Compile and install PHP5.4.8 under CentOS 64-bit today. As a result, it is prompted in configure.
Configure: error: Cannot find ldap libraries in / usr/lib
Note that the relevant module cannot be found under / usr/lib, because 64-bit linux stores all the above files in the / usr/lib64 folder by default.
Solution:
Cp-frp / usr/lib64/libldap* / usr/lib/
Just re-configure.
2. PDO_MYSQL make: * * [pdo_mysql.lo] Error 1
When compiling and installing the PDO_MYSQL extension module, always prompt:
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 header file of MySQL is required at compile time. By default, it searches for the location where the header file cannot be found, so this problem occurs. Just correspond the MySQL header file to / usr/local/include/ through the soft connection.
For example, if your MySQL installation file is located in / usr/local/mysql, execute the following command:
# ln-s / usr/local/mysql/include/* / usr/local/include/
The above is all the contents of the article "what are the errors encountered in the compilation and installation of PHP". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!