PHP安装配置:错误:找不到php_pdo_driver.h
因此,我已经在Linux Mint(与Ubuntu相同)上安装了Apache2和Mysql,现在我试图在Apache上安装PHP,但收到一条非常奇怪的错误消息:
So I have already installed Apache2 and Mysql on Linux Mint (the same as Ubuntu), Now I am trying to install PHP on Apache but I get a very strange error message :
configure: error: Cannot find php_pdo_driver.h.
我在Internet上进行了一些搜索,发现这些文件以前没有嵌入PHP中,但现在已经嵌入了.我什至在PHP源文件夹中亲自检查了该文件,并找到了该特定文件.谁能告诉我问题出在哪里以及如何解决?
I did some search on the Internet and I found out that these files were not embedded before in PHP, but they are now. I even checked for it myself in the PHP source folders and I found that specific file. Can anyone tell me what's the problem and how to solve it ?
实际上PDO包含在PHP内核中.
您必须安装PHP和MySQL捆绑包.
使用sudo apt-get install php5-mysql
actually PDO is included on PHP core.
You must install the PHP and MySQL bundled packages.
Use sudo apt-get install php5-mysql