编译安装pcre
来源:互联网 发布:淘宝买车怎么买 编辑:程序博客网 时间:2024/05/22 05:06
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 version 8.38 2015-11-23
Compiled with
8-bit support
UTF-8 support
Unicode properties support
No just-in-time compiler support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Parentheses nest limit = 250
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
报错:
pcretest: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
pcretest: error while loading shared libraries: libpcre16.so.0: cannot open shared object file: No such file or directory
pcretest: error while loading shared libraries: libpcre32.so.0: cannot open shared object file: No such file or directory
解决办法:
cp -d /usr/lib/libpcre16.so* /lib64/
cp -d /usr/lib/libpcre32.so* /lib64/
cp -d /usr/lib/libpcre.so* /lib64/
./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 version 8.38 2015-11-23
Compiled with
8-bit support
UTF-8 support
Unicode properties support
No just-in-time compiler support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Parentheses nest limit = 250
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
报错:
pcretest: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
pcretest: error while loading shared libraries: libpcre16.so.0: cannot open shared object file: No such file or directory
pcretest: error while loading shared libraries: libpcre32.so.0: cannot open shared object file: No such file or directory
解决办法:
cp -d /usr/lib/libpcre16.so* /lib64/
cp -d /usr/lib/libpcre32.so* /lib64/
cp -d /usr/lib/libpcre.so* /lib64/
0 0
- 编译安装pcre
- 编译安装PCRE时出错
- 编译安装Nginx和pcre
- pcre编译出错gcc-c++未安装
- Linux下编译安装PCRE库
- Linux下编译安装PCRE库
- Linux下编译安装PCRE库
- Linux下编译安装PCRE库
- centos linux 编译安装pcre软件
- centos linux 编译安装pcre软件
- Linux下编译安装PCRE库
- centos linux 编译安装pcre软件
- PCRE++编译
- pcre-8.30编译安装出错[pcrecpp.lo] Error 1
- CENTOS 5.8 编译安装nginx + php-fpm + mysql + pcre + apc
- nginx编译缺少pcre
- Windows下编译pcre
- windows平台编译pcre
- 3,4单元总结
- $.ajax请求数据时,请求文件内容不能用单引号
- android复习路之service综合篇
- Mysql数据库查询语句DQL(Data Query Language)—— 基本查询
- 矩阵的乘法和求逆(C语言实现)
- 编译安装pcre
- 合并排序数组
- 结束了一段时间
- Find Minimum in Rotated Sorted Array II
- jstorm 学习记录一
- 分数线划定pascal程序
- MySQL数据库---操作
- Ubuntu14.04中ROS的安装指南
- spring-data