Skip to content

Cannot find config.m4. Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module #3

@tinysheepyang

Description

@tinysheepyang

你好php:5.6-fpm 安装openssl zlib报Cannot find config.m4请问怎么解决呢我的配置如下
FROM php:5.6-fpm
MAINTAINER

ENV PHPREDIS_VERSION 2.2.8

RUN mkdir -p /usr/src/php/ext/redis
&& curl -L https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz | tar xvz -C /usr/src/php/ext/redis --strip 1
&& echo 'redis' >> /usr/src/php-available-exts
&& docker-php-ext-install redis

修改为163源

RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak &&
echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >/etc/apt/sources.list &&
echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list &&
echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list &&
echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list

RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev
libxml2-dev libfreetype6-dev libmcrypt-dev php5-dev autoconf
libbz2-dev automake libtool m4
&& rm -rf /var/lib/apt/lists/* \

&& docker-php-ext-configure --enable-mbstring --enable-ftp --with-gd --with-jpeg-dir=/usr/include --with-png-dir=/usr/include --with-mysql=mysqlnd \

--with-mysqli=mysqlnd --with-openssl-dir=/usr/include --with-openssl --with-pdo-mysql=mysqlnd --with-pear \

--enable-sockets --with-freetype-dir=/usr/include --enable-gd-native-ttf --with-zlib --with-libxml-dir=/usr/include \

--with-xmlrpc --enable-zip --enable-fpm --enable-xml --with-curl --with-mcrypt --with-mysql-sock --enable-sysvsem \

--with-iconv --enable-soap --enable-pcntl --enable-cli --enable-sysvshm --enable-shared --with-gnu-ld --enable-opcache \

&& docker-php-ext-configure gd --with-png-dir=/usr/include --with-jpeg-dir=/usr/include --with-freetype-dir=/usr/include --with-openssl-dir=/usr/include
--with-freetype-dir=/usr/include --with-libxml-dir=/usr/include
&& docker-php-ext-install bz2 gd mysqli pdo_mysql zip opcache redis openssl zlib curl xmlrpc mcrypt iconv

ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --enable-mbstring --enable-sockets --enable-gd-native-ttf --enable-zip --enable-xml --enable-sysvsem --enable-soap --enable-pcntl --enable-cli --enable-sysvshm --enable-shared --enable-opcache

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions