mod_evasive icon indicating copy to clipboard operation
mod_evasive copied to clipboard

include <pcre2.h> ?

Open StockConsultant opened this issue 1 year ago • 3 comments

followed the read me but get this error please help, install on Almalinux 9

$APACHE_ROOT/bin/apxs -i -a -c mod_evasive.c /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -Wall -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -c -o mod_evasive.lo mod_evasive.c && touch mod_evasive.slo mod_evasive.c:37:10: fatal error: pcre2.h: No such file or directory 37 | #include <pcre2.h> | ^~~~~~~~~ compilation terminated. apxs:Error: Command failed with rc=65536

StockConsultant avatar Sep 12 '24 20:09 StockConsultant

Could you try /usr/bin/apxs -i -a -c -l pcre2-8 mod_evasive.c? I might have to update the docs on how to build from source

jvdmr avatar Nov 05 '24 12:11 jvdmr

i will give it a try, thanks

StockConsultant avatar Nov 13 '24 02:11 StockConsultant

Could you try /usr/bin/apxs -i -a -c -l pcre2-8 mod_evasive.c? I might have to update the docs on how to build from source

This does not work for me since I miss the pcre files anyway. Thus, I installed the pcre2 dev tool with sudo dnf install pcre2-devel, and then /usr/bin/apxs -i -a -c mod_evasive.c works.

Additionally, compiling the module in Alma 9 may also require sudo dnf install redhat-rpm-config for related missing files

FuHsinyu avatar Feb 23 '25 14:02 FuHsinyu