1 ,pdo_mysql Make: * * * [Pdo_mysql.lo] Error 1
Compiling the installation Pdo_mysql Expand the 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 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, your MySQL installation file is located in /usr/local/mysql , then execute the following command:
# ln-s/usr/local/mysql/include/*/usr/local/include/
in the PHP configuration file php.ini to use absolute paths when adding extensions in
extension= "/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so"
2 , in the construction of Phpadmin when the system session_start () Error
Error message:
Warning:session_start (): Open (/var/lib/php/session/sess_qavhhacl7lrdbggauasf1qdlo5, O_RDWR) Failed:nosuch file or Directory (2) in/www/tool/classes/service/user.php on Line75
Warning:Unknown:open (/VAR/LIB/PHP/SESSION/SESS_QAVHHACL7LRDBGGAUASF1QDLO5,O_RDWR) failed:no such file or directory ( 2) in Unknown on line 0
Warning:Unknown:Failed to write session data (files). Verify that thecurrent setting of Session.save_path are correct (/var/lib/php/session) Inunknown on line 0
View PHP.ini:
Session.save_path = "/var/lib/php/session"//session the storage path
So the text above is prompt without the directory
Solve the problem:
Create the above directory
mkdir session
Chmod-r 777 Session
Run the program again and it's OK.
PHP Compilation Problem Summary