onfigure: error: Package requirements (libpcre2-8 >= 10.30) were not met:
No package 'libpcre2-8' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables PCRE2_CFLAGS
and PCRE2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
解决方法
-----------------------------------------------------------------
wget https://ftp.pcre.org/pub/pcre/pcre2-10.34.tar.bz2
tar xjvf pcre2-10.34.tar.bz2
cd pcre2-10.34
./configure --enable-pcre2-16 \
--enable-pcre2-32 \
--enable-jit \
--enable-jit-sealloc
make && make install
configure: error: Package requirements (libzip >= 0.11) were not met:
Requested 'libzip >= 0.11' but version of libzip is 0.10.1
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
解决方法
-----------------------------------------------------------------
编译安装,指定PKG_CONFIG_PATH,上面报错中其实有提示信息,让我们考虑调整PKG_CONFIG_PATH环境变量。
# 先卸载已有
yum remove libzip
# 然后安装
wget https://libzip.org/download/libzip-1.2.0.tar.gz
tar -zxvf libzip-1.2.0.tar.gz
cd libzip-1.2.0
./configure
make && make install
装完了之后找一下/usr/local/lib下有没有pkgconfig目录,有的话执行命令
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/"
指定PKG_CONFIG_PATH这个路径
_____________________________________________________________________________
编译错误
configure: error: Package requirements (oniguruma) were not met:
Package 'oniguruma', required by 'virtual:world', not found
解决
yum install autoconf automake libtool
wget https://github.com/kkos/oniguruma/archive/v6.9.4.tar.gz -O oniguruma-6.9.4.tar.gz
tar -zxvf oniguruma-6.9.4.tar.gz
cd oniguruma-6.9.4/
./autogen.sh && ./configure
make && make install
直接在编译窗口输入就OK
注意 编译第一个的时候不要指定路径
https://blog.csdn.net/jiluz/article/details/105641287
http://linux.csroad.cn/thread/56.html
https://www.qinziheng.com/php7/8892.htm