错误:安装pdo_mysql时找不到php_pdo_driver.h [英] error: cannot find php_pdo_driver.h while installing pdo_mysql

查看:491
本文介绍了错误:安装pdo_mysql时找不到php_pdo_driver.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将pdo_mysql扩展名加载到php,以便在我的VPS中安装Megento(运行CentOS). 然后,我在PHP.ini文件中搜索了类似"extension = pdo.so"的文件.但是我在ini文件中找不到这样的行.然后,我尝试使用"pecl install"安装pdo_mysql.但是安装会显示此错误退出,

I want to load pdo_mysql extension to php inorder to install Megento in my VPS (runs CentOS). Then I searched the PHP.ini file for something like "extension=pdo.so ". But I was unable to find such a line in my ini file. Then I tried to install pdo_mysql using "pecl install" . But the installation exits by displaying this error ,

checking for PDO includes... checking for PDO includes...
configure: error: Cannot find php_pdo_driver.h.
ERROR: `/root/tmp/pear/PDO_MYSQL/configure' failed

我的 phpinfo .请帮我解决这个问题.

My phpinfo . Please help me to solve this problem.

推荐答案

您必须使用PDO支持构建PHP.

You have to build PHP with PDO support.

http://pecl.php.net/package/PDO

请勿使用此功能,因为PDO已移入内核(php源),因此此pecl扩展名已失效."

"Do not use this, as PDO has been moved into core (the php source) so this pecl extension is dead."

这篇关于错误:安装pdo_mysql时找不到php_pdo_driver.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆