Pdo_mysql installation process module prompts PDO_MYSQL make: * * * [Pdo_mysql.lo]

Source: Internet
Author: User

Compile and install Pdo_mysql expansion module, always prompt pdo_mysql make: * * * * [Pdo_mysql.lo] Error 1/software/pdo_mysql-1.0.2/php_pdo_mysql_int.h : 25:19:error:mysql.h:no such file or Directoryin file included from/software/pdo_mysql-1.0.2/pdo_mysql.c:31:


Solution:

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:

The code is as follows Copy Code

# ln-s/usr/local/mysql/include/*/usr/local/include/

Solution II

The code is as follows Copy Code

Yum Install Mysql-devel
[Root@cms-test pdo_mysql-1.0.2]# make install

third, revise php.ini;

/table>
  code is as follows copy code
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
Extension = "pdo_mysql.so"

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.