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

Source: Internet
Author: User
Today, when installing the Pdo_mysql module, prompt for pdo_mysql make: * * * [Pdo_mysql.lo] and other errors, see the workaround.

Compile and install Pdo_mysql Extension module, always prompt pdo_mysql make: * * * [Pdo_mysql.lo] Error 1 under/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:


Workaround:

The MySQL header file is mapped to/usr/local/include/via a soft connection.


For example, if your MySQL installation file is located in/usr/local/mysql, then 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, modify the php.ini;

The code is as follows Copy Code
Extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
Extension = "pdo_mysql.so"

http://www.bkjia.com/PHPjc/444654.html www.bkjia.com true http://www.bkjia.com/PHPjc/444654.html techarticle today, when installing the Pdo_mysql module, prompt for pdo_mysql make: * * * [Pdo_mysql.lo] and other errors, see the workaround. Compile and install Pdo_mysql Extension module, always prompt Pdo_mysql mak ...

  • 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.