martanne / vis

A vi-like editor based on Plan 9's structural regular expressions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lpeg load error: undefined symbol: lua_gettop

rickywu opened this issue · comments

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

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

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