DevHeads.net

Running Lua Script using mod_lua

Hi,

While running lua_script using mod_lua, I am getting this error in
error_log. What does it mean
"PANIC: unprotected error in call to Lua API (core and library have
incompatible numeric types)"

Thanks
Hemant

Comments

Re: Running Lua Script using mod_lua

By Luca Toscano at 05/17/2018 - 01:21

Hi,

2018-05-16 12:22 GMT+02:00 Hemant Chaudhary <hemantdude. ... at gmail dot com>
:

Hope that helps,

Luca

Re: Running Lua Script using mod_lua

By Daniel Gruno at 05/17/2018 - 01:23

On 05/17/2018 08:21 AM, Luca Toscano wrote:
Almost! :)
It's an incompatibility between mod_lua's lua lib (typically 5.1 or 5.2)
and a library that is being used (likely made for 5.3?). There were
fundamental changes to how numbers work in 5.3, if I remember correctly,
so you would either have to use a library that works with 5.1/5.2, OR
recompile mod_lua with the 5.3 library and headers.

Re: Running Lua Script using mod_lua

By Hemant Chaudhary at 05/18/2018 - 05:33

Hi,

Thanks issue is solved.
Actually I was using Lua-5.3. I migrated to Lua-5.1 and it works for me.

Hemant