warning: zlib.h: No such file or directory

时间:2021-10-30 05:30:28

CentOS 6.2 x64 bit

[root@lsd ~]# cat /etc/issue
CentOS release 6.2 (Final)
Kernel \r on an \m
[root@lsd git-1.8.1.2]# make
    CC credential-store.o
In file included from credential-store.c:1:
cache.h:19:18: warning: zlib.h: No such file or directory
In file included from credential-store.c:1:
cache.h:21: error: expected specifier-qualifier-list before ‘z_stream’
make: *** [credential-store.o] Error 1

root@lsd git-1.8.1.2]# yum -y install zlib zlib-devel