【問題描述】
在做一個項目的時候,編譯出現下面的錯誤,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... nochecking 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沒有報這個錯誤了