configure: error: Package requirements (oniguruma) were not met
configure: error: Package requirements (oniguruma) were not met
·
在编译PHP7.4的过程中遇到以上错误提示,是因为没有安装 oniguruma
第一步:下周安装包并解压
wget https://github.com/kkos/oniguruma/archive/v6.9.4.tar.gz -O oniguruma-6.9.4.tar.gz
tar -zxf oniguruma-6.9.4.tar.gz
第二步:编译并安装
进入目录:cd oniguruma-6.9.4
./configure --prefix=/usr --libdir=/lib64
make && make install
再次执行php7 ./configure如果还是提示一样的报错。就在./configure 添加以下参数:
ONIG_LIBS=-L/usr/lib64 ONIG_CFLAGS=-I/usr/include
更多推荐
已为社区贡献1条内容
所有评论(0)