linux 中安装 pcre2库
001、pcre2安装包的下载:
下载地址:http://www.pcre.org/
002、解压
[root@PC1 pcre2]# ls pcre2-10.37.zip [root@PC1 pcre2]# unzip pcre2-10.37.zip [root@PC1 pcre2]# cd pcre2-10.37/ [root@PC1 pcre2-10.37]# ls 132html CleanTxt config.sub doc libpcre2-8.pc.in Makefile.in PrepareRelease src aclocal.m4 cmake configure HACKING libpcre2-posix.pc.in missing README testdata ar-lib CMakeLists.txt configure.ac INSTALL LICENCE NEWS RunGrepTest test-driver AUTHORS compile COPYING install-sh ltmain.sh NON-AUTOTOOLS-BUILD RunGrepTest.bat ChangeLog config-cmake.h.in depcomp libpcre2-16.pc.in m4 pcre2-config.in RunTest CheckMan config.guess Detrail libpcre2-32.pc.in Makefile.am perltest.sh RunTest.bat
003、安装
[root@PC1 pcre2-10.37]# ./configure [root@PC1 pcre2-10.37]# make [root@PC1 pcre2-10.37]# make install
004、测试
[root@PC1 pcre2-10.37]# pcre2-config --version 10.37