**无法--enable-pcregrep-libz,因为未找到zlib.h

**无法--enable-pcregrep-libz,因为未找到zlib.h

问题描述:

我正在尝试在Ubuntu上安装pcre-8.35.我的问题类似于这家伙的.我遵循的是同一教程,但是我的问题出在他的命令上.当我尝试安装时,收到以下错误消息: **无法--enable-pcregrep-libz,因为未找到zlib.h 我做了一些研究并运行了以下命令: sudo apt-get install --reinstall zlib1g 但是,我仍然有同样的问题.感谢帮助!

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!

对于我来说,我能够解决此问题无法--enable-pcregrep-libz,因为未找到zlib.h 只需使用以下命令:

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

这就像 Paul Griffiths