CentOS 8 安装 oniguruma 和 oniguruma-devel

一,oniguruma是什么?

     oniguruma是一个处理正则表达式的库,我们之所以需要安装它,

     是因为在安装php7.4的过程中,mbstring的正则表达式处理功能对这个包有依赖性,

     所以我们要先安装这个库

说明:架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest

         对应的源码可以访问这里获取: https://github.com/liuhongdi/

 说明:作者:刘宏缔 邮箱: [email protected]

二,下载

[root@yjweb source]# wget https://github.com/kkos/oniguruma/archive/v6.9.4.tar.gz -O oniguruma-6.9.4.tar.gz 

三,解压

[root@yjweb source]# tar -zxvf oniguruma-6.9.4.tar.gz
[root@yjweb source]# cd oniguruma-6.9.4/

四,配置与安装

[root@yjweb oniguruma-6.9.4]# ./autogen.sh && ./configure --prefix=/usr
[root@yjweb oniguruma-6.9.4]# make && make install
扫描二维码关注公众号,回复: 9641155 查看本文章

五,安装过程中遇到报错的处理

报错:

[root@yjweb oniguruma-6.9.4]# ./autogen.sh && ./configure --prefix=/usr
Generating autotools files.
./autogen.sh: line 6: autoreconf: command not found

解决:

[root@yjweb oniguruma-6.9.4]# yum install autoconf automake libtool

六,查看本地centos的版本

[sysop@yjweb ~]$ cat /etc/redhat-release
CentOS Linux release 8.0.1905 (Core) 

猜你喜欢

转载自www.cnblogs.com/architectforest/p/12433640.html