error: zlib.h:no such file or directory

今天在编译openssl时,出现了 error: zlib.h:no such file or directory 去看了下出错的文件,里面这么一句#include

c_zlib.c:25:19: fatal error: zlib.h: No such file or directory

# include <zlib.h>

zlib地址:http://www.zlib.net/

zlib标准安装指导:

/usr/local/src/zlib-1.2.8

  • 构建静态库

.../zlib-1.2.8]# ./configure

.../zlib-1.2.8]# make test

.../zlib-1.2.8]# make install

构建共享库

.../zlib-1.2.8]# make clean

.../zlib-1.2.8]# ./configure --shared

.../zlib-1.2.8]# make test

.../zlib-1.2.8]# make install

.../zlib-1.2.8]# cp zutil.h /usr/local/include

.../zlib-1.2.8]# cp zutil.c /usr/local/include

完成

时间: 2024-12-28 08:37:36

error: zlib.h:no such file or directory的相关文章

cocos2d-x 移植到android中编译的一些问题:fatal error: Box2D/Box2D.h: No such file or directory&amp;quot;

1.fatal error: Box2D/Box2D.h: No such file or directory" 须要加入box2d库的支持,改动android.mk文件,例如以下: 查看文本打印? LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := game_shared LOCAL_MODULE_FILENAME := libgame LOCAL_SRC_FILES := hellocpp/main.cpp \

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法

错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directoryzmalloc.h:55:2: error: #error "Newer version of jemalloc required"make[1]: *** [adlist.o] Error 1make[1]: Leaving directory `/data0/src/redis-2.6.2/src

出错mlogc.c:32:23: error: curl/curl.h: No such file or directory

出现下列错误: mlogc.c:32:23: error: curl/curl.h: No such file or directory mlogc.c:1091: error: expected ')' before '*' token mlogc.c: In function 'logc_init': 出错原因:缺少libcurl-dev or libcurl-devel centOS上安装依赖包: yum install libcurl-dev libcurl-devel 出错mlogc.

fatal error: openssl/sha.h: No such file or directory 解决方案

出现这个或者fatal error: openssl/名单.h: No such file or directory.都是没有安装libssl-dev- libssl-dev包含libraries, header files and manpages,他是openssl的一部分,而openssl对ssl进行了实现- 解决方案: 使用sudo apt-get install libssl-dev来安装libssl-dev即可

lua.c:80:31: fatal error: readline/readline.h: No such file or directory

make linuxcd src && make linuxmake[1]: Entering directory `/root/lua/lua-5.3.2/src'make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"make[2]: Entering directory `/root/lua/lua-5.3.2/src'gcc -std=gnu99 -O2 -Wa

解决fatal error: sys/system_properties.h: No such file or directory compilation terminated.

编译的异常log: system/core/include/cutils/properties.h:22:35: fatal error: sys/system_properties.h: No such file or directory compilation terminated. make[1]: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/<strong>xxxxx</strong>

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory

Redis是一个开源的使用ANSI C语言编写.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API. 本文为大家讲解的是Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法,感兴趣的同学参考下. 错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or

error: readline/readline.h: No such file or directory

报如下错: [[email protected] rpy2-2.8.5]# python setup.py install R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch" /usr/lib64/R/bin/R CMD config --ldflags /usr/lib64/R/bin/R CMD config --cppflags Compilation parameters for rpy2's C components

error: openssl/md5.h: No such file or directory

出现:error: openssl/md5.h: No such file or directory 原因是openssl-devel没有安装,运行: yum install libssl-dev 就能够了 我用的Fodera找不到libssl-dev,就运行yum install openssl openssl-devel linux下apache+php安装常见问题 http://hi.baidu.com/easyphp/item/f0e4064c21679deea4c066c9 2) Ch