安装 Git时发现这样子一个问题
安装 Git时发现这样子一个问题
原创xiaoyanli2 ©著作权
©著作权归作者所有:来自51CTO博客作者xiaoyanli2的原创作品,请联系作者获取转载授权,否则将追究法律责任
[root@localhost git-1.6.6]# make
CC fast-import.o
In file included from builtin.h:6,
from fast-import.c:147:
cache.h:17:18: error: zlib.h: No such file or directory
In file included from builtin.h:6,
from fast-import.c:147:
cache.h:22: error: expected ‘)’ before ‘strm’
cache.h:23: error: expected ‘)’ before ‘strm’
cache.h:24: error: expected ‘)’ before ‘strm’
fast-import.c:284: error: ‘Z_DEFAULT_COMPRESSION’ undeclared here (not in a function)
fast-import.c: In function ‘store_object’:
fast-import.c:1040: error: ‘z_stream’ undeclared (first use in this function)
fast-import.c:1040: error: (Each undeclared identifier is reported only once
fast-import.c:1040: error: for each function it appears in.)
fast-import.c:1040: error: expected ‘;’ before ‘s’
fast-import.c:1076: error: ‘s’ undeclared (first use in this function)
fast-import.c:1087: error: ‘Z_FINISH’ undeclared (first use in this function)
fast-import.c:1087: error: ‘Z_OK’ undeclared (first use in this function)
fast-import.c: In function ‘git_pack_config’:
fast-import.c:2470: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)
make: *** [fast-import.o] Error 1
然后使用这样子的命令:
yum install zlib-devel -y 可以解决这个小问题
还要提醒:使用make 之前必须要确保那个压缩文件必须存在。否则会一直提示错误,然后安装不成功
下一篇:我的友情链接
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
git clone 与 git 安装
git clone 与 git 安装
git 安装程序 自定义 -
发现一个小问题
今天用VC6编程的时候,为文本框构建了一个float的变量m_fFreq, 然后计
float 编程 测试 四舍五入 精度问题 -
ZenCart安装发现的一个常见问题
ZenCart安装发现的一个常见问题
PHP MYSQL IIS 电子商务 ZenCart -
GI/CRS静默安装时的一个问题
GI/CRS静默安装时的一个问题
GI CRS silent install interconnect OCR -
有这样一个女孩
有一个这样的女孩...
实验报告 做实验 -
打包时遇到的一个问题jar html ide
-
Git~GitLab当它是一个CI工具时
CI我们都
git 支付宝 持续集成 -
发现项目中一个Memcache部署问题。
发现一个memcache分布式处理的问题
分布式存储 一致性 hash -
一个发现与两个发现与三个发现
一个发现与两个发现与三个发现
一个发现与两个发现与三个发现