php 找不到自动配置。请检查您在 CentOS 中的 autoconf 安装 Xampp

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31583646/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 22:32:32  来源:igfitidea点击:

cannot find autoconf. please check your autoconf installation Xampp in CentOS

phpcentosxamppmemcachedautoconf

提问by lakshmikandan

Getting another error when configuring memcahed with php in XAMPP in CentOS

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

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

Cannot find autoconf. Please check your autoconf installationand the $PHP_AUTOCONF environment variable. Then, rerun this script.

找不到自动配置。请检查您的 autoconf 安装和 $PHP_AUTOCONF 环境变量。然后,重新运行此脚本。

How to resolved it ?

如何解决?

回答by RASEL RANA

MAC Users

MAC用户

You can do it easily using brew.

您可以使用 brew 轻松完成。

brew install autoconf

brew install autoconf

回答by lakshmikandan

You need to install autoconf

你需要安装autoconf

For CentOS:

对于 CentOS:

# yum install autoconf

for Ubuntu :

对于 Ubuntu:

# apt-get install autoconf

for fedora 24-27:

对于软呢帽 24-27:

   # dnf install autoconf

回答by lloiacono

I got here looking for an answer for dockerwhen using Alpine linuxthis worked for me (I tried @Dimitros solution but did not work):

我来到这里寻找一个答案码头工人在使用阿尔卑斯山的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}

回答by Dimitrios Desyllas

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

对于 Alpine Linux,该apk add功能具有(用于清理)使用--virtualor-t开关的虚拟包概念。使用此方法的一个示例是一次性删除一组构建依赖项:

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

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

回答by Xedret

For openSuSE:

对于 openSuSE:

zypper install autoconf

回答by baifuwa

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

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