Centos 8.2セットアップ中です。
php-7.4.8 をこのようにconfigureしました。
# ./configure –prefix=/usr/local/php5 –with-config-file-path=/usr/local/php5/lib –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql –enable-mbstring –enable-mbregex –enable-shared –with-gd –with-jpeg-dir=shared –with-zlib-dir=shared –enable-gd-native-ttf –enable-gd-jis-conv –with-curl –with-openssl –with-mysqli
するとこのようなエラーが出ました。
checking for oniguruma… no
configure: error: Package requirements (oniguruma) were not met:Package ‘oniguruma’, required by ‘virtual:world’, 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.
onigumaだけなら
yum install http://rpms.remirepo.net/enterprise/7/remi/x86_64/oniguruma5php-6.9.5+rev1-2.el7.remi.x86_64.rpm
でインストールできたのですが、oniguruma-develも必要のようでした。
yum install http://rpms.famillecollet.com/enterprise/remi-release-8.rpm
でもエラーは改善しませんでした。
そこで、
yum –enablerepo=remi install oniguruma-devel
remi氏のレポジトリからinstallできました。
するとエラーは出なくなりました。