问题
I'm trying to install pcre-8.35 on Ubuntu. My issue is similar to this guy's.
I'm following the same tutorial, but my problem stems from a command up from his.When I try to install, I receive this error message:
** Cannot --enable-pcregrep-libz because zlib.h was not found
I did some research and ran this command:
sudo apt-get install --reinstall zlib1g
But, I still have the same problem. Help is appreciated!
回答1:
In my case, I was able to solve this issue Cannot --enable-pcregrep-libz because zlib.h was not found with just this command:
sudo apt-get install zlib1g-dev
It's like the tip given by Paul Griffiths
来源:https://stackoverflow.com/questions/25960066/cannot-enable-pcregrep-libz-because-zlib-h-was-not-found