编译报错 fatal error: zlib.h: No such file or directory

进行源码编译的时候报错

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

解决

Centos

sudo yum install zlib-devel

Ubuntu

apt-get install zlib1g-dev

重新编译即可

posted @ 2022-04-01 21:27  请务必优秀  阅读(3964)  评论(0编辑  收藏  举报