jvdmr / mod_evasive

Apache mod_evasive module
GNU General Public License v2.0
15 stars 8 forks source link

include <pcre2.h> ? #29

Open StockConsultant opened 1 month ago

StockConsultant commented 1 month ago

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 | ^~~~~ compilation terminated. apxs:Error: Command failed with rc=65536

jvdmr commented 18 hours ago

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