Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installed library contains call to non-existent luaL_register #147

Open
HJarausch opened this issue Aug 20, 2019 · 0 comments
Open

installed library contains call to non-existent luaL_register #147

HJarausch opened this issue Aug 20, 2019 · 0 comments

Comments

@HJarausch
Copy link

Hi,
I am new to Lua. I have lua 5.3.5 and luarocks 3.1.3 installed on my Gentoo system.
Invoking
luarocks install lmapm
generates and installs the library
/usr/lib64/lua/luarocks/lib/lua/5.3/mapm.so
which refers to luaL_register which doesn't exist in Lua 5.3 any more.

Here my commands
export LUA_CPATH=/usr/lib64/lua/luarocks/lib/lua/5.3/mapm.so
lua
Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio

mp=require("mapm")
error loading module 'mapm' from file '/usr/lib64/lua/luarocks/lib/lua/5.3/mapm.so':
/usr/lib64/lua/luarocks/lib/lua/5.3/mapm.so: undefined symbol: luaL_register

I find it strange that setting
LUA_CPATH=/usr/lib64/lua/luarocks/lib/lua/5.3
gives an error saying that LUA_CPATH points to a directory which should be the normal case for a 'PATH'.

What am I missing?
Many thanks for a hint,
Helmut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant