Req #80990 [NEW]: Better error message for missing oniguruma package
| From: | Danack at basereality dot com | Date: | Mon, 26 Apr 2021 13:05:40 +0000 |
| Subject: | Req #80990 [NEW]: Better error message for missing oniguruma package | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-233575@lists.php.net to get a copy of this message | ||
From: Danack at basereality dot com
Operating system:
PHP version: Irrelevant
Package: *Configuration Issues
Bug Type: Feature/Change Request
Bug description:Better error message for missing oniguruma package
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 bug report at https://bugs.php.net/bug.php?id=80990&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80990&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80990&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80990&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80990&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80990&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80990&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80990&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80990&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80990&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80990&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80990&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80990&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80990&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80990&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80990&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80990&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80990&r=mysqlcfg