I'm currently working with Wireshark installed in CentOs and I want to use Lua to do some automated packet analysis.
As mentioned in this I tried to run
tshark -X lua_script:hello.lua
If your Wireshark is not built with Lua, you can't bet Lua support. You can install a new version.
When installing from source on Linux, run
./configure --help to see the options, one of them are:
--with-lua[=DIR] use liblua (located in directory DIR, if supplied) for the Lua scripting plugin [default=yes, if available]
Make sure to enable this.