Modsecurity install error

jigster

Verified User
Joined
Jul 23, 2021
Messages
88
Hi everyone. I'm trying to install Modsecurity on AlmaLinux 9 and I'm getting the following errors:

msc_lua.c: In function 'lua_execute':
msc_lua.c:437:2: error: #error We are only tested under Lua 5.0, 5.1, 5.2, or 5.3.
437 | #error We are only tested under Lua 5.0, 5.1, 5.2, or 5.3.
| ^~~~~
msc_lua.c:465:2: error: #error We are only tested under Lua 5.0, 5.1, 5.2, or 5.3.
465 | #error We are only tested under Lua 5.0, 5.1, 5.2, or 5.3.
| ^~~~~
make[2]: *** [Makefile:867: mod_security2_la-msc_lua.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

and a little further on...

mv -f .deps/mod_security2_la-msc_pcre.Tpo .deps/mod_security2_la-msc_pcre.Plo
mv -f libinjection/.deps/mod_security2_la-libinjection_sqli.Tpo libinjection/.deps/mod_security2_la-libinjection_sqli.Plo
make[2]: Leaving directory '/usr/local/directadmin/custombuild/modsecurity-2.9.6/apache2'
make[1]: *** [Makefile:594: all] Error 2
make[1]: Leaving directory '/usr/local/directadmin/custombuild/modsecurity-2.9.6/apache2'
make: *** [Makefile:501: all-recursive] Error 1
*** The make has failed. Exiting...

Any ideas on how to fix this? Is this specific to AlmaLinux 9 - I thought DA worked with AlmaLinux 9 but maybe it's too new?
 
Seems an update for modsecurity from 2.9.7 to 2.9.8 should solve the issue...
 
Last edited:
Back
Top