centos7下安装pcre库(pcretest)

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

安装环境是centos7.正则表达式

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

其余的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)进入该目录,运行configurecentos7

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

4) 执行make命令spa

make && make intall

OK !code

相关文章
相关标签/搜索