Current-Users archive

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

Re: Base lua gpio binding vs. pkgsrc lua extensions like lua-socket



On Wed, Mar 25, 2015 at 08:38:46PM +0100, Martin Mersberger wrote:
> Good afternoon,
> 
> I'm playing around with my RPI running current and the gpio binding.
> Using the base lua(1), the gpio binding works really fine, but I also
> like to use the pkgsrc lua-socket extension. By default, the pkg has
> pkgsrc/lang/lua* as dependency and also installs into /usr/pkg.
> 
> How would I stick it together to have a lua(1) environment having both,
> gpio binding and the socket extension? I've tried to adjust LUA_PATH and
> LUA_CPATH to make lua able to find the extensions, but it seems to have
> some incompatibilities:
> 
> /usr/bin/lua: error loading module 'socket.core' from file
> '/usr/pkg/lib/lua/5.3/socket/core.so':
>     /usr/pkg/lib/lua/5.3/socket/core.so: Undefined PLT symbol
> "luaL_checkint" (symnum = 49)
> 
> 
> Any ideas?

You are mixing different Lua versions?

Joerg


Home | Main Index | Thread Index | Old Index