Cannot --enable-pcregrep-libbz2 because bzlib.h wa

2019-02-14 04:07发布

问题:

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**.

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?

回答1:

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

sudo yum whatprovides */bzlib.h

And then install that package

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