PHP installation configure: error: Cannot find php_pdo_driver.h

喜欢而已 提交于 2020-01-06 19:38:31

问题


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.

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 ?


回答1:


actually PDO is included on PHP core. You must install the PHP and MySQL bundled packages. Use sudo apt-get install php5-mysql




回答2:


you should check your php version, you must have php version 5 to load PDO.



来源:https://stackoverflow.com/questions/40554722/php-installation-configure-error-cannot-find-php-pdo-driver-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!