Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zlib error installing GIT on shared hosting

Tags:

git

unix

zlib

I am attempting to install git onto my UK2 shared hosting server, following this guide:

http://www.randallkent.com/development/install-git-on-a-cpanel-shared-hosting-account

I have got to the very last couple of steps 'make' & 'make install' when i receive the following error:

config.status: executing config.mak.autogen commands
* new build flags
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

My hosting provider has enabled zlib compression for me but i am still unable to install git.

Is there something I am missing or is it not possible on my hosting server?

Thanks very much

like image 539
dclawson Avatar asked Dec 01 '22 22:12

dclawson


1 Answers

It seems to be you have to install zlib. If you are using Centos, install zlib by using yum install zlib-devel If you are using Debian, install zlib by using apt-get install zlib1g-dev. If you wanna get source grep it from http://www.zlib.net/ and install it, if you do this sure you will have git in your system. Note: If you install git from the aptitude package manager or from repositories it will automatically install the dependencies.

like image 109
neotam Avatar answered Dec 04 '22 00:12

neotam