【问题描述】
在做一个项目的时候,编译出现下面的错误,configure: error: zlib.h not found ...
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether build environment is sane... yes
checking for strlcpy... no
checking for strlcat... no
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
configure: error: zlib.h not found ...
configure: error: ./configure failed for libhtp
【解决办法】
yum install zlib-devel
安装完成以后再次执行./configure没有报这个错误了
本文介绍了一个项目中遇到的zlib.h未找到错误及其解决方案。通过使用yum命令安装zlib-devel包解决了configure阶段的配置错误。

3212

被折叠的 条评论
为什么被折叠?



