zlib.h not found的编译问题解决

【问题描述】

在做一个项目的时候,编译出现下面的错误,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-deve


安装完成以后再次执行./configure没有报这个错误了

你可能感兴趣的:(编译问题)