如何修复致命错误:zlib.h:没有这样的文件或目录? [英] How to fix fatal error: zlib.h: no such file or directory?

查看:139
本文介绍了如何修复致命错误:zlib.h:没有这样的文件或目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Kali Linux 64位上编译miniSAT,但我不断收到错误消息:

I'm trying to compile miniSAT on Kali Linux 64 bits but I keep getting the error message:

严重错误:zlib.h:没有这样的文件或目录

fatal error: zlib.h: no such file or directory

我已阅读到可能存在链接问题,这会使编译器无法找到头文件,但是我是Linux的新手,并且不知道如何解决该问题.

I have read that there might be a linking problem that makes the compiler unable to find the header files, but I'm new to Linux and do not know how to solve that.

推荐答案

您应该为zlib安装开发支持文件,请尝试:

You should install the development support files for zlib, try:

sudo apt-get install libz-dev

其他软件包名称: zlib1g-dev .

如果您已经有了 zlib 库,请确保使用 -lz 编译代码源.请参阅:在Ubuntu中丢失zlib.h .

If you've already zlib library, make sure you're compiling your code sources with -lz. See: missing zlib.h in ubuntu.

这篇关于如何修复致命错误:zlib.h:没有这样的文件或目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆