美文网首页
CentOS7编译安装PHP时 configure: error

CentOS7编译安装PHP时 configure: error

作者: 刘禹锡_c886 | 来源:发表于2020-11-17 08:23 被阅读0次

操作系统:CentOS7
安装版本:PHP7.4

1)编译安装PHP7.4的时候报错信息如下

# 编译安装PHP7.4时带上这个后报错
--with-external-pcre --with-pcre-jit
configure: error: Package requirements (libpcre2-8 >= 10.30) were not met: No package 'libpcre2-8' found

2)解决方法

wget https://ftp.pcre.org/pub/pcre/pcre2-10.34.tar.bz2

tar xjvf pcre2-10.34.tar.bz2

cd pcre2-10.34

./configure --prefix=/usr/local/pcre2 \
--enable-pcre2-16 \
--enable-pcre2-32 \
--enable-jit \
--enable-jit-sealloc

make && make install

export PKG_CONFIG_PATH=/usr/local/pcre2/lib/pkgconfig/

3)再执行编译

相关文章

网友评论

      本文标题:CentOS7编译安装PHP时 configure: error

      本文链接:https://www.haomeiwen.com/subject/tglzbktx.html