Req #80990 [Com]: Better error message for missing oniguruma package

From: Date: Mon, 26 Apr 2021 14:05:55 +0000
Subject: Req #80990 [Com]: Better error message for missing oniguruma package
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233578@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80990&edit=1 ID: 80990 Comment by: rtrtrtrtrt at dfdfdfdf dot dfd35 Reported by: Danack at basereality dot com Summary: Better error message for missing oniguruma package Status: Open Type: Feature/Change Request Package: *Configuration Issues PHP Version: Irrelevant Block user comment: N Private report: N New Comment: not true on Fedora as example and that you need the devel packages is normal oniguruma-devel-6.9.6-1.fc33.x86_64 oniguruma-6.9.6-1.fc33.x86_64 Previous Comments: ------------------------------------------------------------------------ [2021-04-26 13:05:39] Danack at basereality dot com Description: ------------ When trying to configure with --enable-mbstring the error message when the oniguruma package can't be found is below and says the package needed is 'oniguruma'. But the package that needs to be installed is typically called 'libonig-dev'. Every so often I forget this when compiling on a new system. It would be better if the probably package name could be displayed in the error message. I had a quick look and couldn't see how it instantly. Expected result: ---------------- checking for oniguruma... no configure: error: Package requirements (oniguruma) were not met: No package 'oniguruma' found - The package required is often called 'libonig-dev'. 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. Actual result: -------------- checking for oniguruma... no 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80990&edit=1

« previous php.bugs (#233578) next »