Tag: phpize

添加yaml扩展到使用官方阿尔卑斯山docker图像的PHP

我正在使用这个官方的PHP的Docker镜像: https : //github.com/docker-library/php/blob/76a1c5ca161f1ed6aafb2c2d26f83ec17360bc68/7.1/alpine/Dockerfile 现在我需要添加对yaml扩展的支持,即不捆绑php。 我看到我使用的基本图像使用phpize。 我正在尝试这种方法: FROM php:7.1.5-alpine # Install and enable yaml extension support to php RUN apk add –update yaml yaml-dev RUN pecl channel-update pecl.php.net RUN pecl install yaml-2.0.0 && docker-php-ext-enable yaml 但是我得到这个错误: running: phpize Configuring for: PHP Api Version: 20160303 Zend Module Api No: 20160303 Zend Extension Api No: 320160303 Cannot […]

Docker文件并执行phpize错误

当我尝试构buildDocker文件并执行phpize命令时,出现下面的错误。 Cannot find config.m4. Make sure that you run '/usr/bin/phpize' in the top level source directory of the module 我不能在Docker文件中使用phpize吗? RUN apt-get install -qq -y php7.0-dev git pkg-config build-essential libmemcached-dev subversion RUN cd ~ RUN git clone https://github.com/php-memcached-dev/php-memcached.git RUN cd php-memcached RUN phpize && ./configure RUN ./configure –disable-memcached-sasl RUN make all install