llslim/docker-apache-php-2019

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

Closed this issue · 1 comments

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.

, Because I am installing the mbstring extension, The following applies with PHP 7.4:

The PHP upgrading document mentions in the changes to the MBSTRING extension, the following:

  • Mbstring:
    . The oniguruma library is no longer bundled with PHP, instead libonig needs
    to be available on the system. Alternatively --disable-mbregex can be used
    to disable the mbregex component.

For those building off of Debian flavored images use (libonig-devel). I found it useful to put the library in my build dependencies with the libpng library