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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Danack at basereality dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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 Nov 21 14:01:29 2024 UTC