Lua library issues preventing startup

Please include the following information with your help request:

  • Suricata version: 7.0.6
  • Operating system and/or Linux distribution: Alma 9.3
  • How you installed Suricata (from source, packages, something else): from source

I installed all dependencies and then compiled suricata with --enable-lua flag. When trying to start suricata however, I am getting error while loading shared libraries: liblua-5.1.so: cannot open shared object file: No such file or directory Output of suricata --build-info just shows suricata: error while loading shared libraries: liblua-5.1.so: cannot open shared object file: No such file or directory. I have lua, lua-devel, and lua-libs installed, all version 5.4, so I’m not sure how to proceed at this point…Thanks for any help!

Did you also compile Lua from source?

Otherwise having the packages compat-lua-libs and compat-lua-devel being should be all you need on AlmaLinux 9.

Ah yep, installing the compat-lua packages worked! Now I’m getting an error on the libhtp.so.2 library not being found =( Here’s what I have in /usr/local/lib/:

# ls -al /usr/local/lib
total 1960
drwxr-xr-x.  3 root root     115 Oct 16 10:25 .
drwxr-xr-x. 14 root root     157 Sep 26 14:37 ..
-rw-r--r--.  1 root root 1346168 Sep 26 14:37 libhtp.a
-rwxr-xr-x.  1 root root     928 Sep 26 14:37 libhtp.la
lrwxrwxrwx.  1 root root      15 Sep 26 14:37 libhtp.so -> libhtp.so.2.0.0
lrwxrwxrwx.  1 root root      15 Sep 26 14:37 libhtp.so.2 -> libhtp.so.2.0.0
-rwxr-xr-x.  1 root root  652568 Sep 26 14:37 libhtp.so.2.0.0
drwxr-xr-x.  2 root root      20 Sep 26 14:37 pkgconfig

sudo ldconfig /usr/local/lib