Description
After following the requirements for Fedora 35/Fedora 36/Fedora 37 (the latest documented Fedora version), I still got the error that states oniguruma package not found.
When searching on Troubleshooting Wiki, there is only one solution for Ubuntu users.
Output
natanhp@ngoumah ~/.l/s/phpbrew [1]> phpbrew install 8.4.2 +default
===> phpbrew will now build 8.4.2
===> Loading and resolving variants...
Downloading https://www.php.net/distributions/php-8.4.2.tar.bz2 via curl extension
[==================================================================] 16.71/16.71MB 100%
===> Extracting /home/natanhp/.phpbrew/distfiles/php-8.4.2.tar.bz2 to /home/natanhp/.phpbrew/build/tmp.1736949557/php-8.4.2
===> Moving /home/natanhp/.phpbrew/build/tmp.1736949557/php-8.4.2 to /home/natanhp/.phpbrew/build/php-8.4.2
Running make clean to ensure everything will be rebuilt.
Makefile not found in path /home/natanhp/.phpbrew/build/php-8.4.2
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4
Hunk #1 FAILED at 60.
Hunk #2 FAILED at 114.
2 out of 2 hunks FAILED -- saving rejects to file ext/readline/config.m4.rej
Patch failed
0 changes patched.
===> Configuring 8.4.2...
Use tail command to see what's going on:
$ tail -F '/home/natanhp/.phpbrew/build/php-8.4.2/build.log'
Error: Configure failed:
The last 5 lines in the log file:
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.
Please checkout the build log file for more details:
tail /home/natanhp/.phpbrew/build/php-8.4.2/build.log
Expected Result
natanhp@ngoumah ~/.l/s/phpbrew [1]> phpbrew install -j 12 8.4.2 +default
===> phpbrew will now build 8.4.2
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: ef4fe9921b885ce3b047792ab60260eaf657e22812be511d19d0e45edf984783
===> Distribution file was successfully extracted, skipping...
Running make clean to ensure everything will be rebuilt.
Makefile not found in path /home/natanhp/.phpbrew/build/php-8.4.2
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4
Hunk #1 FAILED at 60.
Hunk #2 FAILED at 114.
2 out of 2 hunks FAILED -- saving rejects to file ext/readline/config.m4.rej
Patch failed
0 changes patched.
Found existing build.log, renaming it to /home/natanhp/.phpbrew/build/php-8.4.2/build.log.1736949728
===> Configuring 8.4.2...
Use tail command to see what's going on:
$ tail -F '/home/natanhp/.phpbrew/build/php-8.4.2/build.log'
===> Checking patches...
Checking patch for php5.3.x on 64bit machine when intl is enabled.
Checking patch for openssl dso linking patch
Checking patch for php5.6 with openssl 1.1.x patch.
===> Building...
Build finished: 1.9 minutes.
Installing...
---> Creating php.ini
---> Copying /home/natanhp/.phpbrew/build/php-8.4.2/php.ini-development
---> Found date.timezone is not set, patching...
---> Found date.timezone, patching config timezone with UTC
Initializing pear config...
config-set succeeded
config-set succeeded
config-set succeeded
Enabling pear auto-discover...
config-set succeeded
Congratulations! Now you have PHP with 8.4.2 as php-8.4.2
Command
phpbrew install 8.4.2 +default
Build Log
natanhp@ngoumah ~/.l/s/phpbrew [1]> tail -F '/home/natanhp/.phpbrew/build/php-8.4.2/build.log'
configure: error: Package requirements (oniguruma) were not met:
Package 'oniguruma' not 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.
Possible Fix
Install the following development package:
sudo dnf install oniguruma-devel
Platform
OS: Fedora 41
Running PHP: 8.3.15
Installing PHP: 8.4.2
Description
After following the requirements for Fedora 35/Fedora 36/Fedora 37 (the latest documented Fedora version), I still got the error that states
onigurumapackage not found.When searching on Troubleshooting Wiki, there is only one solution for Ubuntu users.
Output
Expected Result
Command
Build Log
Possible Fix
Install the following development package:
Platform
OS: Fedora 41
Running PHP: 8.3.15
Installing PHP: 8.4.2