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

7.8k Views Asked by At

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’

2

There are 2 best solutions below

0
On BEST ANSWER

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

0
On

Centos 7:

yum install zlib-devel.x86_64