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 –

  • docker push fails with status 400
  • Assigning a docker container a static private ip to access it without port forwarding
  • docker hub webhook for _failed_ build?
  • How to properly start nginx in Docker
  • Error : function_clause while running the docker container for the rabbitmq
  • Laradock (container) files on Windows
  • ARG INSTALL_BZ2=true
    RUN if [ ${INSTALL_BZ2} = true ]; then \
        # Install the bz2 extension
        pecl install bz2 && \
        docker-php-ext-enable bz2 \
    ;fi
    

    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
    module

    ERROR: `phpize’ failed

    Please advice on this.

  • Dockerized nodes of elasticsearch cluster in EC2, production environment
  • Fedora 22: ERROR: No module named '_rpmb' while building docker
  • Using the host ip in docker-compose
  • How can I make docker-machine create a VM in a specific location
  • AWS Configure Bash One Liner
  • Running cucumber without starting starting rails for remote website testing
  • 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.