Pdo_MySQL安装过程模块提示PDO_MYSQL make: *** [pdo_mysql.lo]_PHP教程

WBOY
Release: 2016-07-20 11:11:15
Original
947 people have browsed it

今天在安装Pdo_MySQL模块时提示PDO_MYSQL make: *** [pdo_mysql.lo]之类的错误,下面来看解决办法。

编译安装PDO_MYSQL拓展模块,总是提示 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:


解决办法:

通过软连接把MySQL头文件对应到/usr/local/include/下就好


比如你的MySQL安装文件位于/usr/local/mysql,那么就执行以下命令:

 代码如下 复制代码

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

解决办法二

 代码如下 复制代码

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

三、修改php.ini;

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

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/444654.htmlTechArticle今天在安装Pdo_MySQL模块时提示PDO_MYSQL make: *** [pdo_mysql.lo]之类的错误,下面来看解决办法。 编译安装PDO_MYSQL拓展模块,总是提示 PDO_MYSQL mak...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!