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

lak*_*dan 67 php xampp autoconf memcached centos

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

#  /opt/lampp/bin/phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
Run Code Online (Sandbox Code Playgroud)

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

怎么解决呢?

RAS*_*ANA 100

MAC用户

你可以使用brew轻松完成.

brew install autoconf

  • 这种方式特别推荐给MacOSX用户. (6认同)
  • 适用于MacPorts:`port install autoconf`. (2认同)

lak*_*dan 43

你需要安装autoconf

对于CentOS:

# yum install autoconf
Run Code Online (Sandbox Code Playgroud)

对于Ubuntu:

# apt-get install autoconf
Run Code Online (Sandbox Code Playgroud)

对于fedora 24-27:

   # dnf install autoconf
Run Code Online (Sandbox Code Playgroud)


llo*_*ono 27

当我使用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}
Run Code Online (Sandbox Code Playgroud)

  • 这可行!只是不要忘记遵循docker image的文档`强烈建议用户在pecl安装调用中使用明确的版本号,以确保适当的PHP版本兼容性。 (3认同)
  • 对我来说这已经足够了: `apk --no-cache add autoconf g++ make && pecl install xdebug && docker-php-ext-enable xdebug && rm -rf /tmp/pear; apk del autoconf g++ make;` 在 `php:8.0.2-alpine` docker 镜像中 (2认同)

Dim*_*las 22

对于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
Run Code Online (Sandbox Code Playgroud)

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