Search code examples
gitzlibrhelfailed-installation

Git installation RHEL Linux failing with "warning: zlib.h: No such file or directory"


I am installing git following the document.

But I am getting below error after running make command http://www.thegeekstuff.com/2011/08/git-install-configure/

 [root@liaan17 git-1.8.2.3]# 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’


Solution

  • Solved it by wget zlib.net/zlib-1.2.8.tar.gz and installed the same