【原创】php7安装扩展错误AS_CASE、AC_DEFINE、AC_CANONICAL_HOST

今天服务器安装swoole扩展死活提示错误:

[root@netpc.com.cn swoole-4.0.0]# /usr/local/php7/bin/phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
config.m4:262: warning: AC_CANONICAL_HOST invoked multiple times
configure:7794: error: possibly undefined macro: AS_CASE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:7801: error: possibly undefined macro: AC_DEFINE

查README和文档里
autoconf 2.69
gcc 4.8

查询本机发现autoconf版本低了

[root@netpc.com.cn swoole-4.0.0]# rpm -qf /usr/bin/autoconf
autoconf-2.59-12

升级后搞定。

此条目发表在服务器分类目录,贴了, 标签。将固定链接加入收藏夹。

发表回复