<>下载
[root@localhost src]# wget wget ftp://ftp.pcre.org/pub/pcre/pcre-8.40.tar.gz
下载其他版本:ftp://ftp.pcre.org/pub/pcre/
<>安装
pcre-8.40.tar.gz上传到 /usr/local/src文件夹
程序安装到 /usr/local/pcre8
[root@localhost src]# tar -xzvf pcre-8.40.tar.gz [root@localhost nginx_related]
# cd pcre-8.40 [root@localhost pcre-8.40]# ./configure
--prefix=/usr/local/pcre8 --libdir=/usr/local/lib/pcre
--includedir=/usr/local/include/pcre [root@localhost pcre-8.40]# make && make
install
<>安装完成检查是否生成对应目录
[root@localhost pcre-8.40]# ls /usr/local | grep pcre [root@localhost pcre-8.40
]# ls /usr/local/lib | grep pcre [root@localhost pcre-8.40]# ls
/usr/local/include| grep pcre