When pdo_mysql is installed in linux today, the PDO_MYSQLmake: *** [pdo_mysql.lo] Error1 error occurs. The following describes the solution.
When pdo_mysql is installed in linux today, the Error PDO_MYSQL make: *** [pdo_mysql.lo] Error 1 is displayed. The solution is as follows.
Because MySQL header files are required during compilation. This problem occurs only when the header file cannot be found by default. Connect the MySQL header file to/usr/local/include/through a soft connection.
For example, if your MySQL installation file is in/usr/local/mysql, run the following command:
# Ln-s/usr/local/mysql/include/*/usr/local/include/
Solution:
| The Code is as follows: |
|
|
Link the mysql header file in the/usr/local/server/MySQL/include/directory to the/usr/local/include/directory.
# Ln-s/usr/local/server/mysql/include/*/usr/local/include/ |
Restart apache. After installation is complete, you can find the corresponding pdo_mysql in phpinfo. php.