【排错】
从git编译 php 7.4 ,configure时报错:
configure: error: Package requirements (oniguruma) were not met: No package 'oniguruma' found
【介绍】
Oniguruma是一个由 Kosako 和 Tanaka 两位开发的很棒的正则表达式库。用作 Ruby 语言的正则表达式引擎。
官网:https://github.com/kkos/oniguruma
最新版本:6.9.2
相关漏洞:http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-201705-1197
【yum安装RPM包】
yum install https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/o/oniguruma-5.9.5-3.el7.x86_64.rpm yum install https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/o/oniguruma-devel-5.9.5-3.el7.x86_64.rpm
【git源码编译安装】
git clone https://github.com/kkos/oniguruma.git oniguruma cd oniguruma ./autogen.sh ./configure make make install
输出:
... Libraries have been installed in: /usr/local/lib ...
环境变量:
export ONIG_CFLAGS="-I/usr/local/include" ONIG_LIBS="-L/usr/local/lib -lonig"