php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #80990 Better error message for missing oniguruma package
Submitted: 2021-04-26 13:05 UTC Modified: -
From: Danack at basereality dot com Assigned:
Status: Open Package: *Configuration Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-04-26 13:05 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-04-26 14:05 UTC] rtrtrtrtrt at dfdfdfdf dot dfd35
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
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 20 09:03:36 2021 UTC