在Centos8环境中编译安装PHP出现如上报错:
原因是没有安装配置oniguruma导致的
解决方法如下:
1、获取源码,
wget https://github.com/kkos/oniguruma/archive/v6.9.4.tar.gz -O oniguruma-6.9.4.tar.gz
备用地址:
https://www.58pxe.com/wp-content/uploads/2021/02/oniguruma-6.9.4.tar.gz
2.解压
tar -zxf oniguruma-6.9.4.tar.gz
进入目录
cd oniguruma-6.9.4
3、编译安装
./autogen.sh && ./configure --prefix=/usr
make && make install
如果是Centos7环境中的话:
解决方法如下:
yum -y install http://mirror.centos.org/centos-7/7.7.1908/cloud/x86_64/openstack-queens/oniguruma-6.7.0-1.el7.x86_64.rpm
yum -y install http://mirror.centos.org/centos-7/7.7.1908/cloud/x86_64/openstack-queens/oniguruma-devel-6.7.0-1.el7.x86_64.rpm
备用下载地址:
oniguruma:https://www.58pxe.com/wp-content/uploads/2021/02/oniguruma-6.7.0-1.el7_.x86_64.zip
oniguruma-devel:https://www.58pxe.com/wp-content/uploads/2021/02/oniguruma-devel-6.7.0-1.el7_.x86_64.zip
转载:https://www.58pxe.com/7187.html