问题描述
在centos7.6的环境上安装php7.4.30版本,在执行./configure命令时报错如下图:
执行./configure的命令如下:
./configure --prefix=/soft/php74 --with-config-file-path=/soft/php74/etc --with-libdir=/usr/lib64 --with-freetype=/usr/include/freetype2/freetype/ --with-jpeg=/usr/lib64 --disable-rpath --with-curl --enable-gd --with-gettext --with-mysqli --with-openssl --with-openssl-dir --with-iconv --with-zip --with-pdo-mysql --with-pdo-sqlite --with-xsl --with-zlib --with-bz2 --with-mhash --enable-fpm --enable-pdo --enable-session --enable-simplexml --enable-bcmath --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-mysqlnd --enable-xml --enable-phar \
错误原因:mbstring的正则功能需要oniguruma的