lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2015-05-17 22:09 GMT+02:00 Hisham <h@hisham.hm>:
> On 17 May 2015 at 15:41, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>> $ lua -v -l lpeg
>> Lua 5.3.0  Copyright (C) 1994-2015 Lua.org, PUC-Rio
>> lua: error loading module 'lpeg' from file '/usr/local/lib/lua/5.3/lpeg.so':
>>     /usr/local/lib/lua/5.3/lpeg.so: undefined symbol: lua_replace
>> stack traceback:
>>     [C]: in ?
>>     [C]: in function 'require'
>>     [C]: in ?
>
> Looks like your Lua install doesn't match your lua.h headers. Note
> that at build time it's picking stuff from /home/dirk/include and
> /home/dirk/lib. Do you have another Lua version in there?

That's it! I do have ~/include and it's a forgotten symlink to Lua 5.3
beta which I did not want to install systemwideI deleted it, rebuilt
lpeg and now it works, if "works" is the right word for "reproduces
the bug reported by the OP".