当前位置: 首页 > 工具软件 > OSS-Fuzz > 使用案例 >

CentOS报错make: *** [fuzz-commit-graph.o] Error 1

裴学
2023-12-01


一、问题描述

CentOS 7 下执行 make profix=/usr/local/git 命令时报错:

[root@server-c00ef8c3-710d-4708-9cde-2c864e7c03e2 git-2.35.1]# make profix=/usr/local/git
    CC fuzz-commit-graph.o
In file included from object-store.h:4:0,
                 from commit-graph.h:5,
                 from fuzz-commit-graph.c:1:
cache.h:21:18: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
                  ^
compilation terminated.
make: *** [fuzz-commit-graph.o] Error 1

二、解决方法

安装 zlib-devel :

yum -y install zlib-devel
 类似资料: