本文介绍了无法--enable-pcregrep-libbz2,因为未找到bzlib.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装pcre 8.32. 当我尝试按照教程进行安装时,出现此错误:

I am trying to install pcre 8.32. When I tried to install following this tutorial I get this error:

 **Cannot --enable-pcregrep-libbz2 because bzlib.h was not found**.

然后我尝试了:sudo yum install libbz2-dev,现在它说的是No package libbz2-dev available.Error: Nothing to do

Then I tried: sudo yum install libbz2-dev and now it is saying No package libbz2-dev available.Error: Nothing to do

我完全感到困惑.接下来我要做什么?

I am totally confused. What shold I do next?

推荐答案

尝试查找为bzlib.h文件提供以下内容的软件包:

Try to locate the package that provides the bzlib.h file with:

sudo yum whatprovides */bzlib.h

然后安装该软件包

根据您的评论,程序包名称为bzip2-devel-1.0.6-3.fc15.i686,请这样做:

From your comment the package name is bzip2-devel-1.0.6-3.fc15.i686, so do:

sudo yum install bzip2-devel-1.0.6-3.fc15.i686

这篇关于无法--enable-pcregrep-libbz2,因为未找到bzlib.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-10 19:32