我是靠谱客的博主 隐形鸡翅,这篇文章主要介绍编译安装pcre,现在分享给大家,希望可以做个参考。

yum intsall bzip2-devel readline-devel
./configure --prefix=/usr                    
             --docdir=/usr/share/doc/pcre-8.36
             --enable-unicode-properties      
             --enable-pcre16                  
             --enable-pcre32                  
             --enable-pcregrep-libz            
             --enable-pcregrep-libbz2          
             --enable-pcretest-libreadline    
             --disable-static --enable-utf8
make 
make install
cp -d /usr/lib/libpcre16.so* /lib64/
cp -d /usr/lib/libpcre32.so* /lib64/
cp -d /usr/lib/libpcre.so* /lib64/
**配置环境变量,在/etc/profile文件中加入以下两句,并source一下


PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64/pkgconfig
export PKG_CONFIG_PATH


**当安装好pcre后,输入pcretest -C来打印pcre的安装情况,一般输出如下:

最后

以上就是隐形鸡翅最近收集整理的关于编译安装pcre的全部内容,更多相关编译安装pcre内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(104)

评论列表共有 0 条评论

立即
投稿
返回
顶部