找不到 autoconf。请检查 CentOS 中的 autoconf 安装 Xampp

在 CentOS 的 XAMPP 中使用 php 配置 memcached 时出现另一个错误

#  /opt/lampp/bin/phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226

找不到 autoconf。请检查 autoconf 安装 和 的 $PHP _ AUTOCONF 环境变量,然后重新运行这个脚本。

怎么解决?

82485 次浏览

You need to install autoconf

For CentOS:

# yum install autoconf

for Ubuntu :

# apt-get install autoconf

for fedora 24-27:

   # dnf install autoconf

MAC Users

You can do it easily using brew.

brew install autoconf

For openSuSE:

zypper install autoconf

For Alpine Linux the apk add feature has (for cleanup) a concept of virtual packages using the --virtual or -t switch. An example use of this would be removing a group of build dependencies all at once:

apk add --no-cache --update --virtual buildDeps autoconf \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& apk del buildDeps

Reference: https://github.com/gliderlabs/docker-alpine/blob/master/docs/usage.md

I got here looking for an answer for docker when using Alpine linux this worked for me (I tried @Dimitros solution but did not work):

RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& apk del pcre-dev ${PHPIZE_DEPS}

I resolved the problem by "yum install autoconf" on CentOS 7