Lpeg load error: undefined symbol: lua_gettop
rickywu opened this issue · comments
rickywu commented
Install LPeg by luarocks
/usr/local/share/vis/vis.lua:108: error loading module 'lpeg' from file '/usr/local/lib/lua/5.2/lpeg.so':
/usr/local/lib/lua/5.2/lpeg.so: undefined symbol: lua_gettop
undefined symbol: lua_gettop
Centos:7
Lua:5.2
Luarocks:3.0.4
Lpeg:0.12.2-1
vis:0.6
Lua and LPeg is the minimal version which vis depends
rickywu commented
And I build LPeg and run itself test return OK with different Lua version
rickywu commented
Lua do not build liblua.so officially, but vis expect this shared lib
So compile Lua with liblua.so to fix it.