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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With