PHP

添加php的pdo_mysql模块出错

当编译添加pdo_mysql的php模块时,phpize出现如下警告:
[root@web pdo_mysql]# /usr/local/php5.3.6/bin/phpize 
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
config.m4:138: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
aclocal.m4:2747: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:138: the top level
config.m4:138: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
aclocal.m4:2747: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:138: the top level
已邀请:

chris - 喜欢自由散漫的我

赞同来自:

解决如上问题只需要几步搞定,主要原因是因为:autoconf版本太高造成的 解决方法:安装autoconf 2.13
# yum install autoconf213.noarch  -y
# export PHP_AUTOCONF=/usr/bin/autoconf-2.13 
# export PHP_AUTOHEADER=/usr/bin/autoheader-2.13
然后再phpize就好了。   64位环境如下等错误:
configure: error: libjpeg.(a|so) not found.
或者
configure: error: *.(a|so) not found.
这些库已经安装了但还报错 在configure 时加参数 --with-libdir=lib64即可。

要回复问题请先登录注册