Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nginx compiling from source

Tags:

nginx

pcre

We needed to include sticky directive in nginx; so we followed steps from this link http://nginx.org/en/docs/howto_build_on_win32.html.. But we are getting below error:

 In file included from src/core/ngx_core.h:71:0,
        from src/core/nginx.c:9:
 src/core/ngx_regex.h:15:18: fatal error: pcre.h: No such file or directory

This link had similar issue Error building : fatal error: pcre.h: No such file or directory but i am using latest of pcre i.e. pcre2-10.10

Can anybody tell how to correct the issue or any location from which i can download nginx with sticky module

like image 759
Raichu Avatar asked Jun 19 '26 10:06

Raichu


1 Answers

Just don't use pcre2. You need pcre like pcre-8.36.

like image 144
Stavinsky Avatar answered Jun 21 '26 09:06

Stavinsky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!