Re: suricata: enable lua support


Khem Raj
 

perhaps you needs to add lua to DEPENDS as well.

On Fri, Mar 4, 2022 at 11:18 AM Gary Huband via lists.yoctoproject.org
<gary=missionsecure.com@...> wrote:

How can I enable lua support for suricata? According to
https://suricata.readthedocs.io/en/suricata-6.0.0/install.html
I can add --enable-lua, so I created a suricata_%.bbappend file with

# Add lua
DEPENDS += "lua-native"
RDEPENDS_${PN} += "lua"
EXTRA_OECONF += "--enable-lua"

But when I bitbake suricata I get this error

| checking for magic.h... yes
| checking for magic_open in -lmagic... yes
| checking for LUA... no
| checking for LUA... no
| checking for LUA... no
| checking for LUA... no
| checking lualib.h usability... no
| checking lualib.h presence... no
| checking for lualib.h... no
|
| ERROR! liblua headers not found, go get them
| from http://lua.org/index.html or your distribution:
|
| Ubuntu: apt-get install liblua5.1-dev
| Fedora: dnf install lua-devel
| CentOS/RHEL: yum install lua-devel
|
| If you installed software in a non-standard prefix
| consider adjusting the PKG_CONFIG_PATH environment variable
| or use --with-liblua-includes and --with-liblua-libraries
| configure option.

lua and lua-native appear to build.



Join {yocto@lists.yoctoproject.org to automatically receive all group messages.