Home >Backend Development >PHP Tutorial >Pdo_MySQL installation process module prompts PDO_MYSQL make: *** [pdo_mysql.lo]_PHP tutorial

Pdo_MySQL installation process module prompts PDO_MYSQL make: *** [pdo_mysql.lo]_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:11:151062browse

Today, when installing the Pdo_MySQL module, an error such as PDO_MYSQL make: *** [pdo_mysql.lo] was prompted. Let’s take a look at the solution.

Compiling and installing the PDO_MYSQL expansion module always prompts 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:


Solution:

Through soft connection The MySQL header file just corresponds to /usr/local/include/


For example, if your MySQL installation file is located in /usr/local/mysql, then execute the following command:

Solution 2
The code is as follows
 代码如下 复制代码

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

Copy code

 代码如下 复制代码

yum install mysql-devel
[root@cms-test PDO_MYSQL-1.0.2]# make install

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

 代码如下 复制代码
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
extension = "pdo_mysql.so"
The code is as follows
Copy code

yum install mysql -devel 3. Modify 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.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/444654.htmlTechArticleToday when installing the Pdo_MySQL module, an error such as PDO_MYSQL make: *** [pdo_mysql.lo] was prompted, as follows Let’s see the solution. When compiling and installing the PDO_MYSQL expansion module, it always prompts PDO_MYSQL mak...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn