configure: error: Package requirements (oniguruma) were not met 编译安装PHP

admin 建站教程评论2,9281字数 974阅读模式

在Centos8环境中编译安装PHP出现如上报错:
原因是没有安装配置oniguruma导致的
解决方法如下:

1、获取源码,

  1. wget https://github.com/kkos/oniguruma/archive/v6.9.4.tar.gz -O oniguruma-6.9.4.tar.gz  
  2. 备用地址:https://www.58pxe.com/wp-content/uploads/2021/02/oniguruma-6.9.4.tar.gz  

2.并解压

  1. tar -zxf oniguruma-6.9.4.tar.gz  

进入目录

  1. cd oniguruma-6.9.4  

3、编译安装

  1. ./autogen.sh && ./configure --prefix=/usr  
  2. make && make install  

如果是Centos7环境中的话:

解决方法如下:

  1. 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  
  2. 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  

备用下载地址:

  1. oniguruma:https://www.58pxe.com/wp-content/uploads/2021/02/oniguruma-6.7.0-1.el7_.x86_64.zip  
  2. oniguruma-devel:https://www.58pxe.com/wp-content/uploads/2021/02/oniguruma-devel-6.7.0-1.el7_.x86_64.zip  

更多相关文章

centos8 安装php7.3.27 解决报错 /usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or dire…
CentOS8 系统yum安装出现“未找到匹配的参数”、“没有可用软件包”错误

版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
admin
  • 本文由 发表于 2021年2月15日 16:14:24
  • 转载请务必保留本文链接:https://www.58pxe.com/7187.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: