tech-userlevel archive

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

Re: Lua modules, paths, man pages etc.



Am 07.10.11 11:00, schrieb Iain Hibbert:
> On Fri, 7 Oct 2011, Marc Balmer wrote:
> 
>> Installation location.
>>
>> Lua modules have to be installed in /usr/lib/lua/5.1/ (assuming Lua
>> 5.1).
> 
> 5.2 is I understand close to release, do you have a plan to upgrade our
> tree version to that?  It might put off the compat issues if we had 5.2 in
> tree before creating "5.1" directories..

Eventually we can switch to 5.2, but I'd rather wait a bit until that
has setteled a bit.

> 
> (we should also have a /usr/share/lua/5.1, since the binary looks there)

it look in different places, /usr/lib/lua/5.1 and share.

> 
> alternatively, I wonder if dropping the version number is better?  My
> reasoning being, that the in-tree version uses the in-tree directories,
> and if you installed a later version under eg /usr/local then it would be
> looking in /usr/local/lib/lua/5.3 (ditto for pkgsrc) for its modules..?

no, it has to be versioned.  the interfaces and such change.  But we
should probably only have one version anyways.


> 
> iain



Home | Main Index | Thread Index | Old Index