Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tinysheepyang opened this issue Jan 10, 2017 · 0 comments

Comments

@tinysheepyang
Copy link

tinysheepyang commented Jan 10, 2017

你好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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant