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

问题描述 投票:58回答:6

在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环境变量。然后,重新运行此脚本。

怎么解决呢?

php centos xampp memcached autoconf
6个回答
90
投票

MAC用户

你可以使用brew轻松完成。

brew install autoconf


39
投票

你需要安装autoconf

对于CentOS:

# yum install autoconf

对于Ubuntu:

# apt-get install autoconf

对于fedora 24-27:

   # dnf install autoconf

21
投票

当我使用Alpine linux时,我到这里寻找码头工人的答案这对我有用(我尝试了@Dimitros解决方案,但没有工作):

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

20
投票

对于Alpine Linux,apk add功能使用--virtual-t开关(用于清理)虚拟包的概念。使用此示例的一个示例是同时删除一组构建依赖项:

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

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


1
投票

对于openSuSE:

zypper install autoconf

0
投票

我通过CentOS 7上的“yum install autoconf”解决了这个问题

© www.soinside.com 2019 - 2024. All rights reserved.