martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.21k stars 258 forks source link

Lpeg load error: undefined symbol: lua_gettop #900

Closed rickywu closed 3 years ago

rickywu commented 3 years ago

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 3 years ago

And I build LPeg and run itself test return OK with different Lua version

rickywu commented 3 years ago

Lua do not build liblua.so officially, but vis expect this shared lib So compile Lua with liblua.so to fix it.