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

PhpCentosXamppMemcachedAutoconf

Php Problem Overview


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 ?

Php Solutions


Solution 1 - Php

MAC Users

You can do it easily using brew.

> brew install autoconf

Solution 2 - Php

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}

Solution 3 - Php

You need to install autoconf

For CentOS:

# yum install autoconf

for Ubuntu :

# apt-get install autoconf

for fedora 24-27:

   # dnf install autoconf

Solution 4 - Php

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

Solution 5 - Php

For openSuSE:

zypper install autoconf

Solution 6 - Php

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLakshmikandanView Question on Stackoverflow
Solution 1 - PhpRASEL RANAView Answer on Stackoverflow
Solution 2 - PhplloiaconoView Answer on Stackoverflow
Solution 3 - PhpLakshmikandanView Answer on Stackoverflow
Solution 4 - PhpDimitrios DesyllasView Answer on Stackoverflow
Solution 5 - PhpXedretView Answer on Stackoverflow
Solution 6 - PhpbaifuwaView Answer on Stackoverflow