Installing on clean CentOS 7 failing with oniguruma not being found

larsjohanhallen

New member
Joined
Mar 11, 2021
Messages
4
Getting this while trying to install on CentOS 7.

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.

*** There was an error while trying to configure php. Check the configure file

Tried to do a manual install of oniguruma but obviously failed. Twice even!

I am beginner. What am I doing wrong?
 
Code:
# yum install oniguruma-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: de.mirrors.clouvider.net
 * extras: de.mirrors.clouvider.net
 * remi-safe: mirror.23media.com
 * updates: ftp.plusline.net
No package oniguruma-devel available.
Error: Nothing to do
 
Bash:
# yum install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: de.mirrors.clouvider.net
 * extras: de.mirrors.clouvider.net
 * remi-safe: mirror.23media.com
 * updates: ftp.plusline.net
base                                                                                             | 3.6 kB  00:00:00     
extras                                                                                           | 2.9 kB  00:00:00     
remi-safe                                                                                        | 3.0 kB  00:00:00     
updates                                                                                          | 2.9 kB  00:00:00     
remi-safe/primary_db                                                                             | 1.9 MB  00:00:00     
Package epel-release-7-11.noarch already installed and latest version
Nothing to do
 
That did the trick! Would you mind explaining a little bit of this so that I can learn what happened?
It was simply new version of LSPHP which was different from all the previous versions (naming/structure), thus code changes to support it were needed in CustomBuild.
 
So, I'm having the same issue -- but the fix isn't working:
checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met:

No package 'oniguruma' found

# yum install oniguruma-devel -- enablerepo=epel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.chpc.utah.edu
* extras: mirror.lax.genesisadaptive.com
* remi-safe: mirror. bebout.net
* updates: mirrors.oit.uci.edu
No package oniguruma-devel available.
No package enablerepo=epel available.
Error: Nothing to do

I'm relatively new and following this:
Server Guide

Any suggestions?
 
@Kataflok
there have "white space" between "--" and "enablerepo" in command

should be
yum install oniguruma-devel --enablerepo=epel
Thanks, but that was just a typo - command was issued correctly.

Found a workaround -- ran the above command before running this part of the above linked guide:

# disable Remi & EPEL by default and only enable manually when needed
yum-config-manager --disable remi epel
yum -q list jq nghttp2 redis memcached memcached-devel libmemcached-devel libmemcached --enablerepo=epel,remi
yum -y install jq nghttp2 redis memcached memcached-devel libmemcached-devel libmemcached --enablerepo=epel,remi
# mlocate
updatedb
Result: Instal successful.
 
Back
Top