wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

Problem with installing nginx with nginx-push-stream-module #198

Closed agarwalkartik closed 9 years ago

agarwalkartik commented 9 years ago

Following error is printed

make -f objs/Makefile install make[1]: Entering directory '/home/kartik/nginx-1.0.5' gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../nginx-push-stream-module/src -I ../nginx-push-stream-module/include -I objs -I src/http -I src/http/modules -I src/mail \ -o objs/addon/src/ngx_http_push_stream_module.o \ ../nginx-push-stream-module/src/ngx_http_push_stream_module.c In file included from ../nginx-push-stream-module/src/ngx_http_push_stream_module.c:26:0: ../nginx-push-stream-module/include/ngx_http_push_stream_module.h:278:5: error: unknown type name ‘ngx_shmtx_sh_t’ ngx_shmtx_sh_t messages_trash_lock;

agarwalkartik commented 9 years ago

The issue was solved when installed it with nginx 1.8.0

agarwalkartik commented 9 years ago

But on running configuration tests i recieve following error

nginx: [emerg] invalid event type "poll" in /home/kartik/nginx-push-stream-module/misc/nginx.conf:19

wandenberg commented 9 years ago

HI @kartikagarwal1993 as write at readme the supported nginx versions are 1.2.0+, because of that worked when you moved from 1.0.5 to 1.8.0. About the "poll" message you have to change to a event engine available at your system. For instance, kqueue to macos and epoll for linux.

Just a side note, the misc/nginx.conf file is used by me to develop the module and should not be used at production. Of course you can base on it to do your own configuration file.

fasiha commented 9 years ago

@kartikagarwal1993 just following up on what @wandenberg said, http://nginx.org/en/docs/events.html contains the full list of allowed event types. On Mac, the default poll isn't available, but kqueue is.