Closed centminmod closed 2 years ago
Hi @centminmod,
If you do not use stream js module you have to load only ngx_http_js_module.so
@centminmod
[emerg] dlopen() "/usr/local/nginx/modules/ngx_stream_js_module.so" failed (/usr/local/nginx/modules/ngx_stream_js_module.so: undefined symbol: ngx_stream_core_module)
While I see that you provide --with-stream
while building the modules, the most straightforward reason for the error is that the nginx binary you are using with njs module is not built with stream
subsystem.
Cannot reproduce so far.
@xeioex thanks for that insight - believe I see what I did wrong - I have a nginx version check for enabling stream module but forgot to add a check for nginx 1.23!
With Nginx 1.23.0 and njs 0.7.5 I am getting
but revisiting https://nginx.org/en/docs/njs/install.html I notice it says
or
and notand
when loading the moduleso I only need to load one of them and not both?
I've been loading both fine with njs 0.7.4/0.7.5 and nginx 1.21.6 or 1.22.0
So only need
load_module "modules/ngx_http_js_module.so";
?On CentOS 7.9 64bit with GCC 10.2.1