我试图在 msys 下编译 git。但是编译会抛出错误,说它无法找到 zlib.h。问题是 zlib.h 实际上在msys\include
目录中。搜索错误,每个人都说是缺少zlib库。但由于 msys\include 目录已经包含zlib.h
,我想知道可能是什么问题!
Making
GIT_VERSION = 1.7.11
* new build flags or prefix
CC credential-store.o
In file included from credential-store.c:1:0:
cache.h:19:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [credential-store.o] Error 1
failure at line 262