編譯 php-memcache 擴充套件時提示Cannot find autoconf
阿新 • • 發佈:2018-12-31
下載memcache擴充套件 http://pecl.php.net/package/memcache ,到 /usr/local/src目錄下並解壓
[[email protected] src]# tar zxf memcache-2.2.7.tgz [[email protected] src]# cd memcache-2.2.7 [[email protected] memcache-2.2.7]# ls config9.m4 CREDITS memcache_consistent_hash.c memcache_queue.c memcache_standard_hash.c config.m4 example.php memcache.dsp memcache_queue.h php_memcache.h config.w32 memcache.c memcache.php memcache_session.c README
根據當前的 php 版本動態的建立擴充套件的 configure 檔案
[[email protected] memcache-2.2.7]# /usr/local/php7/bin/phpize Configuring for: PHP Api Version: 20180731 Zend Module Api No: 20180731 Zend Extension Api No: 320180731 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
錯誤提示 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
缺少autoconf,通過yum安裝 m4 和 autoconf
[[email protected] memcache-2.2.7]# yum install -y m4 [[email protected] memcache-2.2.7]# yum install-y autoconf
再次建立configure檔案
[[email protected] memcache-2.2.7]# /usr/local/php7/bin/phpize Configuring for: PHP Api Version: 20180731 Zend Module Api No: 20180731 Zend Extension Api No: 320180731
[[email protected] memcache-2.2.7]# ls acinclude.m4 config.sub Makefile.global memcache_standard_hash.c aclocal.m4 configure memcache.c missing autom4te.cache configure.ac memcache_consistent_hash.c mkinstalldirs build config.w32 memcache.dsp php_memcache.h config9.m4 CREDITS memcache.php README config.guess example.php memcache_queue.c run-tests.php config.h.in install-sh memcache_queue.h config.m4 ltmain.sh memcache_session.c