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: -
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: Danack at basereality dot com Assigned:
Status: Open Package: *Configuration Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
12 + 33 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC