Question

I'm using the lua interpreter and I'm trying to load LuaXML but when I require('LuaXML'), I get this error.

lua: error loading module 'LuaXML' from file './LuaXML_lib.so':
    ./LuaXML_lib.so: undefined symbol: luaL_prepbuffer

I have no clue how to fix this. I tried compiling the module myself but it still throws the error.

Was it helpful?

Solution

This is because you are trying to use LuaXML under Lua 5.2.
LuaXML was designed for Lua 5.1.
The problem can be solved by installing Lua 5.1.x or LuaJIT.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top