Chinaunix

标题: 安装NGNIX时出错,HELP [打印本页]

作者: bruce_lrd    时间: 2009-05-24 08:54
标题: 安装NGNIX时出错,HELP
src/core/ngx_md5.h:18:17: error: md5.h: No such file or directory
In file included from src/http/ngx_http_file_cache.c:10:
src/core/ngx_md5.h:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ngx_md5_t’
src/http/ngx_http_file_cache.c: In function ‘ngx_http_file_cache_create_key’:
src/http/ngx_http_file_cache.c:120: error: ‘ngx_md5_t’ undeclared (first use in this function)
src/http/ngx_http_file_cache.c:120: error: (Each undeclared identifier is reported only once
src/http/ngx_http_file_cache.c:120: error: for each function it appears in.)
src/http/ngx_http_file_cache.c:120: error: expected ‘;’ before ‘md5’
cc1: warnings being treated as errors
src/http/ngx_http_file_cache.c:128: warning: implicit declaration of function ‘MD5Init’
src/http/ngx_http_file_cache.c:128: error: ‘md5’ undeclared (first use in this function)
src/http/ngx_http_file_cache.c:138: warning: implicit declaration of function ‘MD5Update’
src/http/ngx_http_file_cache.c:145: warning: implicit declaration of function ‘MD5Final’
make[1]: *** [objs/src/http/ngx_http_file_cache.o] Error 1
make[1]: Leaving directory `/home/nginx-0.7.58'
make: *** [build] Error 2

./configure --prefix=/usr/local/ngnix/ --user=www --group=www --with-http_stub_status_module 编译没有问题,
make 时出现上述问题,请高手帮忙看看,我的GCC是4.1的!
作者: bruce_lrd    时间: 2009-05-24 08:59
安装0.6.37版本竟然没有问题,是否是gcc太低的缘故?
作者: 一刀砍死    时间: 2009-05-26 10:25
cyrus-sasl-devel
装上这个包再试试~
作者: zhy1899    时间: 2009-05-30 21:56
你的是那个版本的,必须按照core




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2