xiaokai-wang / nginx-stream-upsync-module

For stream protocol. syncing upstreams from etcd or consul and so on, dynamically updating backend servers attribute, not need to reload nginx for tcp protocol, stream configure.
175 stars 48 forks source link

nginx-stream-upsync-module 编译爆ngx_stream.h:没有那个文件或目录 #36

Open kuaiwenwu opened 5 years ago

kuaiwenwu commented 5 years ago

编译的命令是:./configure --prefix=/usr/local/nginx --with-pcre=../pcre-8.42 --add-module=../nginx_upstream_check_module/ --add-module=../nginx-upsync-module/ --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --add-module=../nginx-stream-upsync-module

报错如下: les -I ../nginx-upsync-module//src -I ../nginx-stream-upsync-module/src \ -o objs/addon/src/ngx_http_json.o \ ../nginx-upsync-module//src/ngx_http_json.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../nginx_upstream_check_module/ -I ../pcre-8.42 -I objs -I src/http -I src/http/modules -I ../nginx-upsync-module//src -I ../nginx-stream-upsync-module/src \ -o objs/addon/src/ngx_http_parser.o \ ../nginx-upsync-module//src/ngx_http_parser.c cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../nginx_upstream_check_module/ -I ../pcre-8.42 -I objs -I src/http -I src/http/modules -I ../nginx-upsync-module//src -I ../nginx-stream-upsync-module/src \ -o objs/addon/src/ngx_stream_upsync_module.o \ ../nginx-stream-upsync-module/src/ngx_stream_upsync_module.c ../nginx-stream-upsync-module/src/ngx_stream_upsync_module.c:8:24: 致命错误:ngx_stream.h:没有那个文件或目录

xiaokai-wang commented 5 years ago

这个报错是因为什么呢?