include <pcre2.h> ?
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
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
i will give it a try, thanks
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