configure: error: Cannot find php_pdo_driver.h.

安装pdo_mysql

cd /usr/local/src/php-5.4.0/ext/pdo_mysql/

/usr/local/php/bin/phpize   # /usr/local/php为php安装后的目录

./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/local/mysql

sudo make && sudo make install

报configure: error: Cannot find php_pdo_driver.h.错误

原因是安装pdo_mysql前需要先安装pdo

cd  php5.4/ext/pdo/

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/webserver/php/bin/php-config  --enable-pdo=shared

make &&make install

然后

交以下几行添加至php/lib/php.ini 文件上

extension_dir = "/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20100525/"
extension=pdo.so
extension=pdo_mysql.so

时间: 2024-08-30 07:55:38

configure: error: Cannot find php_pdo_driver.h.的相关文章

php安装redis扩展'checking for igbinary includes... configure: error: Cannot find igbinary.h'解决方法

今天准备给yii2安装redis扩展,先安装了redis服务,然后安装redis php官方扩展,在make的时候提示' checking for igbinary includes... configure: error: Cannot find igbinary.h ' 上stackoverflow搜了下,说是默认安装Igbinary库的路径在/usr/local/php/indclude下面,改成/usr/php/include即可,看了一下服务器上根本没有装这个扩展,只能先装Igbina

configure: error: Cannot find ldap.h

系统版本 [[email protected] php-5.3.27]# cat /etc/redhat-release CentOS release 6.5 (Final) LNMP编译安装php的过程中报错: 第一个报错: 解决办法: yum install openldap openldap-devel  -y 第二个报错: configure: error: Cannot find ldap libraries in /usr/lib 解决办法: cp -frp /usr/lib64/l

configure: error: Cannot find ldap.h错误

yum list openldapyum list openldap-devel安装 :yum install openldapyum install openldap-devel

php安装编译时 configure: error: Cannot find OpenSSL's <evp.h>

=============================================== yum install error: protected multilib versions error===============================================sudo yum downgrade openssl 降级sudo yum install openssl-devel ===另外参考====================================

安装php过程中的错误和解决方式 configure: error: jpeglib.h not found

centos6.5 32位系统: checking for the location of libpng... yeschecking for the location of libXpm... nochecking for FreeType 2... yeschecking for T1lib support... nochecking whether to enable truetype string function in GD... yeschecking whether to enab

configure: error: Please reinstall the libcurl distribution - easy.h in <curl-dir>/include/curl/

Ubuntu编译安装Php执行配置时,出现: configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/ 解决: sudo apt-get install libcurl4-gnutls-dev configure: error: Please reinstall the libcurl distribution - easy.h in &l

configure: error: jpeglib.h not found.

编译出现错误: configure: error: jpeglib.h not found. 解决方法:yum install libjpeg libjpeg-devel -y libjpeg-devel在base.repo源里面没有,需借助epel.repo,具体配置方法参照:http://www.cnblogs.com/llius/p/5105051.html

configure: error: mcrypt.h not found. Please reins

今天service层代码报错,mcrypt 系列函数没有定义(项目中接了ID5做身份认证) 于是开始编一个mcrypt扩展 出现如下错误:configure: error: mcrypt.h not found. Please reinstall libmcrypt. 处理之: wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz tar -zxvf libmcrypt-2.5.7

php 编译安装报错 configure: error: mcrypt.h not found. Please reinstall libmcrypt.

编译安装php时报错的解决方法: 错误一:configure: error: mcrypt.h not found. Please reinstall libmcrypt. 解决办法:需要安装Libmcrypt wget http://softlayer.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gz        tar -zxvf libmcrypt-2.5.8.tar.gz        cd /usr/local/