openresty/lua-upstream-nginx-module

make 的时候出现了一个错误

qwe109 opened this issue · 2 comments

CentOS 6.5;
NGINX 1.6.2;
LUAJIT 2.0;
... --add-module=/usr/local/ngx_devel_kit-master/ --add-module=/usr/local/lua-nginx-module-master/ --add-module=/usr/local/lua-upstream-nginx-module-master
error info:
/usr/local/lua-upstream-nginx-module-master/src/ngx_http_lua_upstream_module.c
/usr/local/lua-upstream-nginx-module-master/src/ngx_http_lua_upstream_module.c: 在函数‘ngx_http_lua_upstream_get_servers’中:
/usr/local/lua-upstream-nginx-module-master/src/ngx_http_lua_upstream_module.c:179: 错误:‘ngx_http_upstream_server_t’没有名为‘name’的成员
/usr/local/lua-upstream-nginx-module-master/src/ngx_http_lua_upstream_module.c:193: 错误:‘ngx_http_upstream_server_t’没有名为‘name’的成员
/usr/local/lua-upstream-nginx-module-master/src/ngx_http_lua_upstream_module.c:195: 错误:‘ngx_http_upstream_server_t’没有名为‘name’的成员
/usr/local/lua-upstream-nginx-module-master/src/ngx_http_lua_upstream_module.c:196: 错误:‘ngx_http_upstream_server_t’没有名为‘name’的成员
make[1]: *** [objs/addon/src/ngx_http_lua_upstream_module.o] 错误 1
make[1]: Leaving directory `/nginx-1.6.2'
make: *** [build] 错误 2

@qwe109 you should try a high versoion of nginx . nginx-1.6.2's ngx_http_upstream_server_t has no
name to support this module .

nginx-1.8.1 or later will be your choose.

Consider it resolved.

@qwe109 BTW, never use Chinese here. Thank you.