安装PHP7.4时执行命令./configure --prefix=/usr/local/php --with-mysql-sock=/usr/local/mysql/mysql.sock --with-mysqli --with-zlib --with-curl --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-openssl --enable-mbstring --enable-xml --enable-session --enable-ftp --enable-pdo --enable-tokenizer --enable-zip --enable-fpm时报
configure: error: Package requirements (oniguruma) were not met:
Package 'oniguruma', required by 'virtual:world', not found
解决:需安装安装 oniguruma 和 oniguruma-devel
(1)下载
wget https://github.com/kkos/oniguruma/archive/v6.9.4.tar.gz -O oniguruma-6.9.4.tar.gz
(2)解压
tar -zxvf oniguruma-6.9.4.tar.gz
cd oniguruma-6.9.4/
(3)安装autoreconf
yum install autoconf automake libtool
(4)配置与安装
./autogen.sh && ./configure --prefix=/usr
make && make install
在安装PHP么?欢迎来看我的原创文章“零基础Centos8安装PHP7.4”(https://blog.csdn.net/have_a_cat/article/details/115206879),这里有详细安装步骤、安装截图、报错解决,只要跟着步骤,就能完成PHP7安装