Skip to content

php:7.4.0beta4-apache configure error on mbstring ext install #880

@pavlakis

Description

@pavlakis

The oniguruma package fails with the following error when trying to install mbstring:
docker-php-ext-install mbstring

configure: error: Package requirements (oniguruma) were not met:

No package 'oniguruma' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

For reference, this is my updated Dockerfile

FROM php:7.4.0beta4-apache

RUN apt-get update && apt-get install -y \
        libfreetype6-dev \

        libjpeg62-turbo-dev \
        libmcrypt-dev \
        libpng-dev \
        zlib1g-dev \
        libxml2-dev \
        libzip-dev \

        graphviz \

    && docker-php-ext-configure gd \
    && docker-php-ext-install -j$(nproc) gd \
    && docker-php-ext-install pdo_mysql \
    && docker-php-ext-install mysqli \
    && docker-php-ext-install zip \

#    && docker-php-ext-install mbstring \
    && docker-php-source delete

RUN a2enmod rewrite
RUN service apache2 restart

# Ports
EXPOSE 80
CMD ["apachectl", "-D", "FOREGROUND"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions