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