java技术研究

统计

留言簿(3)

阅读排行榜

评论排行榜

nginx-sticky-module-1.1安装不上

今天在安装的时候出现这样的错误。

src/http/modules -I src/mail \

-o objs/addon/nginx-sticky-module-1.1/ngx_http_sticky_misc.o \ ../nginx-sticky-module-1.1/ngx_http_sticky_misc.c
In file included from ../nginx-sticky-module-1.1/ngx_http_sticky_misc.c:11:0: src/core/ngx_sha1.h:19:17: fatal error: sha.h: No such file or directory compilation terminated. make1?[objs/addon/nginx-sticky-module-1.1/ngx_http_sticky_misc.o] Error 1 make1?: Leaving directory `/etc/nginx/nginx-1.4.1' make: build? Error 2

我的命令是
./configure --prefix=/opt/nginx --with-file-aio --with-http_stub_status_module --add-module=../nginx-sticky-module-1.1
make


提示信息不实很明确,后来安装了openssl之后再次安装就解决了问题。
yum -y install openssl-devel

posted on 2014-03-28 10:32 小秦 阅读(4293) 评论(1)  编辑  收藏

评论

# re: nginx-sticky-module-1.1安装不上 2014-06-13 17:57 周运健

nginx-1.5.x和nginx-sticky-module-1.1编译会有点问题,应该是nginx新版本没有相应的nginx-sticky-module,解决办法是把nginx-sticky-module-1.1/ngx_http_sticky_misc.c的281行修改为:digest->len = ngx_sock_ntop(in,sizeof(struct sockaddr_in), digest->data, len, 1);

Suse11 对应src/core/ngx_sha1.h:19:17: error: sha.h: No such file or directory 的错误~需要安装zlib-devel-1.2.3-106.34.x86_64.rpm(libopenssl-devel的依赖包.) libopenssl-devel-0.9.8h-30.11.x86_64.rpm   回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: