I met some issues in nginx compilation with zstd-module when dealing with the ZSTD_* environment variables.
zstd lib 1.5.6 was built with make lib-mt or make lib in path_to/build/zstd/ without error. Thus, zstd.h, libzstd.a and libzstd.so in path_to/build/zstd/lib.
According to read me, ZSTD_INC set to path_to/build/zstd/lib/zstd.h and ZSTD_LIB set to path_to/build/zstd/lib.
nginx was compiled with --add-module=path_to/zstd-nginx-module.
Then, nginx checking reported:
checking for ZStandard static library in path_to/build/zstd/lib/zstd.h and path_to/build/zstd/lib ... not found
checking for ZStandard dynamic library in path_to/build/zstd/lib/zstd.h and path_to/build/zstd/lib ... not found
./auto/configure: error: ngx_http_zstd_filter_module requires the ZStandard library, please be sure that "$ZSTD_INC" and "$ZSTD_LIB" are set correctly.
All paths are correct and exist.
After searching for the source code, I found the variables were used in:
checking for ZStandard static library in path_to/build/zstd/lib/zstd.h and path_to/build/zstd/lib/libzstd.a ... not found
checking for ZStandard dynamic library in path_to/build/zstd/lib/zstd.h and path_to/build/zstd/lib/libzstd.a ... found
checking for ZStandard static library in path_to/build/zstd/lib/zstd.h and path_to/build/zstd/lib/libzstd.a ... not found
checking for ZStandard dynamic library in path_to/build/zstd/lib/zstd.h and path_to/build/zstd/lib/libzstd.a ... found
So, static library was not found but dynamic library was found. How strange!
How could i properly set the environment variables? And how does nginx produce ngx_found?
Hi,
I met some issues in nginx compilation with zstd-module when dealing with the ZSTD_* environment variables.
make lib-mt
ormake lib
inpath_to/build/zstd/
without error. Thus,zstd.h
,libzstd.a
andlibzstd.so
inpath_to/build/zstd/lib
.path_to/build/zstd/lib/zstd.h
and ZSTD_LIB set topath_to/build/zstd/lib
.--add-module=path_to/zstd-nginx-module
.Then, nginx checking reported:
All paths are correct and exist.
After searching for the source code, I found the variables were used in:
They both should be folder path, right?
Then, I set:
Nginx reported 'not found' again.
Then, I tried to set (which is obviously not correct):
Nginx reported:
So, static library was not found but dynamic library was found. How strange!
How could i properly set the environment variables? And how does nginx produce ngx_found?
Thx.