Hi.  On debian stable but with 5.2 in /usr/local/bin, I did:
  luarocks install lgdbm GDBM_LIBDIR=/usr/lib/i386-linux-gnu/
and it ended up in  /usr/local/lib/lua/5.2/gdbm.so
But, trying to use it reveals:
  undefined symbol: luaL_register
which means it's Lua5.1 code.  So I emailed Luiz Henrique who said:
> This seems to be the gdbm library for Lua 5.1 compiled in 5.2.
> Apparently luarocks does not contain a rock for the 5.2 version.
> Please let the luarocks people know about this problem.
> There is a gdbm library for Lua 5.2 at
>    http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lgdbm.
> whose date is Jul 2013.

That URL features separate tarballs for separate Lua version;
The lua5.2 tarball is:
  http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.2/lgdbm.tar.gz
There's no    #if LUA_VERSION_NUM >= 502  test in the C code.

Can a rockspec adjust its tarball URL according to which
Lua version it's running ?  Is it something low-tech like
  if _VERSION == 'Lua 5.2' then
     source = {
? From the naive user's point of view, it would be nice if
  luarocks install lgdbm
picked the right version (ideally also the right GDBM_LIBDIR)...

If this works, I could put together a manual page, which would be
useful to people eg. if it could go in the description['homepage']
field.  Is this possible, in a module which isn't really mine ?

Thanks, regards,  Peter Billam

http://www.pjb.com.au      [email protected]     (03) 6278 9410
"Follow the charge, not the particle."  --  Richard Feynman
 from The Theory of Positrons, Physical Review, 1949

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to