building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

Sergey A. Osokin osa at freebsd.org.ru
Sat May 7 13:58:39 UTC 2022


Hi Kaushal,

On Sat, May 07, 2022 at 06:31:59PM +0530, Kaushal Shriyan wrote:
> 
> #gcc -o ngx_cache_purge_module ngx_cache_purge_module.c
> ngx_cache_purge_module.c:30:19: fatal error: nginx.h: No such file or
> directory
>  #include <nginx.h>
>                    ^
> compilation terminated.

I'd recommend to follow this [1] blog post to create a dynamic module
for nginx.

References:
1. https://www.nginx.com/blog/compiling-dynamic-modules-nginx-plus/

-- 
Sergey A. Osokin



More information about the nginx mailing list