Docker : phpize cannot find config.m4

I’m using Laradock on Windows 7. I need to install bz2 extension, so I edited the php-fpm Dockerfile-70 as below.

Added below code –

  • AWS Beanstalk and Docker ports = what manner of tomfoolery is this?
  • flocker plugin not found, error response from daemon
  • What would the file look like for Gitlab CI?
  • Salt: 'dockerng' __virtual__ returned False
  • How to externalize the docker container file
  • Windows 7 jupyter notebook executing tensorflow
  • ARG INSTALL_BZ2=true
    RUN if [ ${INSTALL_BZ2} = true ]; then \
        # Install the bz2 extension
        pecl install bz2 && \
        docker-php-ext-enable bz2 \

    Then when I run docker-compose build php-fpm I get few following error. I did google search and tried suggestions, nothing so far worked.

    running: phpize

    Cannot find config.m4.

    Make sure that you run
    ‘/usr/local/bin/phpize’ in the top level source directory of the

    ERROR: `phpize’ failed

    Please advice on this.

  • net_adm:ping from one container to another
  • Execute command in linked docker container
  • Ansible, running role multiple times with different parameter sets
  • selinux issues with Openshift 3.4 with dynamic persistant volumes using glusterfs
  • How to create new databases and collections when using MongoDB with Docker?
  • Questions about Mesos Linux container and Docker
  • One Solution collect form web for “Docker : phpize cannot find config.m4”

    Install the bz2 lib and the php extension like this:

    RUN apt-get install -y libbz2-dev \
        && docker-php-ext-install bz2
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.