昨天在另外一台机器上编译代码没有问题,但是换到新的环境就出问题了,编译提示 “error: zlib.h: No such file or directory”,开始以为是拷贝文件时少了什么文件,后面认真看了下,原来是系统里面没有安装 zlib开发包.执行 apt-get install zlib1g-dev 。然后重新编译就解决了。
相关文章
- VC6.0问题:明明有#ifndef _WINDOWS,为何编译还会出现Cannot open include file: 'dlfcn.h'?
- 为什么老出现这个错误Cannot open include file: 'graphics.h': No such file or directory
- 编译gd-2.0.35.tar.gz时报错:gd_png.c:16:53: error: png.h: No such file or directory
- build/temp.linux-x86_64-2.7/_openssl.c:493:30: fatal error: openssl/opensslv.h: No such file or directory
- 运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- linux开发板出现Read-only file system的解决办法
- docker-compose exec时 出现"fork/exec /proc/self/exe: no such file or directory" 报错
- C语言编译错误 fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
- 在Linux下安装PHP过程中,编译时出现configure: error: libjpeg.(a|so) not found 错误的解决办法
- linux学习--编译php出现错误 : configure: error: libpng.(a|so) not found.