在CentOS的XAMPP中用php配置memcahed时出现另一个错误
# /opt/lampp/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
找不到自动配置。请检查您的autoconf安装和$ PHP_AUTOCONF环境变量。然后,重新运行此脚本。
怎么解决呢?
Answers:
MAC用户
您可以使用brew轻松做到这一点。
brew install autoconf
port install autoconf。
您需要安装autoconf
对于CentOS:
# yum install autoconf
对于Ubuntu:
# apt-get install autoconf
对于fedora 24-27:
# dnf install autoconf
我来到这里寻找一个答案码头工人在使用阿尔卑斯山的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}
It is strongly recommended that users use an explicit version number in their pecl install invocations to ensure proper PHP version compatibility
对于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
--no-cache需要使用该标志来确保在下载软件包时以及运行一切之后不缓存软件包。通过添加该标志,图像从200MB变为89MB。
我在CentOS 7上通过“ yum install autoconf”解决了问题