Sarath S
Sarath S

Reputation: 383

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’

Upvotes: 3

Views: 8271

Answers (2)

Andrii K
Andrii K

Reputation: 41

Centos 7:

yum install zlib-devel.x86_64 

Upvotes: 4

Sarath S
Sarath S

Reputation: 383

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

Upvotes: 0

Related Questions