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沒有報這個錯誤了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章