我正在尝试按照本指南在我的UK2共享主机服务器上安装git:
http://www.randallkent.com/development/install-git-on-a-cpanel-shared-hosting-account
当我收到以下错误时,我已经完成了最后几步'make'和'make install':
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
Run Code Online (Sandbox Code Playgroud)
我的托管服务提供商为我启用了zlib压缩,但我仍然无法安装git.
是否有我遗漏的东西或在我的托管服务器上不可能?
非常感谢
nav*_*nam 15
好像你必须安装zlib.如果您使用的是Centos,请使用yum install zlib-devel
如果您使用Debian安装zlib,请使用安装zlib apt-get install zlib1g-dev.如果您想从http://www.zlib.net/获取源代码grep 并安装它,如果您这样做,请确保您的系统中有git.注意:如果从aptitude包管理器或从存储库安装git,它将自动安装依赖项.