Pcre 安装

在linux下需要对正则表达式的验证,使用的验证工具是pcretest,这个工具集成在pcre库中,下面是安装教程。

安装环境是centos7.

1)首先去官网下载压缩包文件。

其他的source网站需要墙,点击https://www.pcre.org/,我使用的ftp下载的,https://ftp.pcre.org/pub/pcre/pcre-8.13.tar.gz

wget https://ftp.pcre.org/pub/pcre/pcre-8.13.tar.gz

2)解压缩

tar -xzvf  pcre-8.13.tar.gz

3)进入该目录,运行configure

cd pcre-8.13
./configure --enable-utf8  

4) 执行make命令

make && make intall

猜你喜欢

转载自www.cnblogs.com/jackey2015/p/11736016.html