PDO_MYSQLmake: *** [pdo_mysql.lo] Error1

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.