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

自古美人都是妖i 提交于 2021-02-17 08:52:52

问题


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

#  /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 installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.

How to resolved it ?


回答1:


MAC Users

You can do it easily using brew.

brew install autoconf




回答2:


You need to install autoconf

For CentOS:

# yum install autoconf

for Ubuntu :

# apt-get install autoconf

for fedora 24-27:

   # dnf install autoconf



回答3:


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}



回答4:


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




回答5:


For openSuSE:

zypper install autoconf



回答6:


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



来源:https://stackoverflow.com/questions/31583646/cannot-find-autoconf-please-check-your-autoconf-installation-xampp-in-centos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!