在php擴充套件pdo_mysql時,報autoconf錯誤解決

技術小牛人發表於2017-11-05

問題:

[root@monitor pdo_mysql]# 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:2748: 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:2748: PHP_CHECK_PDO_INCLUDES is expanded from… 

config.m4:138: the top level

解決方法:

autoconf版本太高造成的,我的辦法是安裝autoconf 2.13

redhat類系統執行如下命令

yum install autoconf213.noarch 

export PHP_AUTOCONF=/usr/bin/autoconf-2.13 

export PHP_AUTOHEADER=/usr/bin/autoheader-2.13

64位環境下

configure: error: libjpeg.(a|so) not found.

或者 configure: error: *.(a|so) not found.

這些庫已經安裝了但還報錯

在configure 時加引數 –with-libdir=lib64

本文轉自    geekwolf   51CTO部落格,原文連結:http://blog.51cto.com/linuxgeek/998988


相關文章