在CentOS中的XAMPP中使用php配置memcached时出现另一个错误
# /opt/lampp/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
找不到autoconf。请检查您的autoconf安装和$ PHP_AUTOCONF环境变量。然后,重新运行此脚本。
怎么解决呢?
MAC用户
你可以使用brew轻松完成。
brew install autoconf
你需要安装autoconf
对于CentOS:
# yum install autoconf
对于Ubuntu:
# apt-get install autoconf
对于fedora 24-27:
# dnf install autoconf
当我使用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}
对于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
对于openSuSE:
zypper install autoconf
我通过CentOS 7上的“yum install autoconf”解决了这个问题