pcre源码库安装报错

    笔者今天在安装pcre过程报错如下:

checking bzlib.h usability... no
checking bzlib.h presence... no
checking for bzlib.h... no
checking for libbz2... no
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking readline/history.h usability... no
checking readline/history.h presence... no
checking for readline/history.h... no
checking for readline in -lreadline... no
** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found

网上查了需要安装libbz2、libbz2-devel这个包,yum安装无该安装包

so就google找了libbz2的下载地址,坑爹啊~发现libbz2的下载包就是bzip2的tar包。

然后就没下,直接用yum安装:

Running Transaction
  Installing     : bzip2-devel                                                                                                                                                   1/1 

Installed:
  bzip2-devel.i386 0:1.0.3-6.el5_5                                                                                                                                                   

Complete!

再来编译pcre看看

   Build shared libs ............... : yes
    Build static libs ............... : yes
    Link pcregrep with libz ......... : yes
    Link pcregrep with libbz2 ....... : yes
    Link pcretest with libreadline .. : no

妥妥的问题解决了~

你可能感兴趣的:(bzip2,zlibb2,pcre报错)