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

AssamGuy picture AssamGuy · Dec 20, 2012 · Viewed 14.4k times · Source

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?

Answer

Atropo picture Atropo · Dec 20, 2012

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