[luatex] external modules from the (Linux) distro

Manuel Pégourié-Gonnard mpg at elzevir.fr
Tue Aug 9 23:53:38 CEST 2011


Hi Taco,

Le 09/08/2011 19:33, Taco Hoekwater a écrit :
>> May I suggest to make texlua's search path look this way too? It looks quite
>> reasonable and universal (as opposed to distro-specific) this way.
> 
> Package.path in luatex is initialized according to the stock lua
> distribution's default. And by that I mean the stock lua from www.lua.org,
> not the patched debian version ... and I am sure you see where this is going
> ...
> 
Right, I see.

I think the default of the stock lua (from lua.org) is reasonable for stock lua
since, if you're compiling Lua yourself, then you're quite likely to install it
in /usr/local and quite unlikely to install anything Lua-related from distro
packages. OTOH, when you get packages from a distribution, it makes a lot of
sense to have them in /usr and keep /usr/local for local stuff; actually I think
it's what the FHS says.

>> PS: I'm aware I can fix package.path in my script before using require, I just
>> think it would be better if it worked OOTB.
> 
> ... and it would have worked OOTB, if Debian had not altered the lua settings. 
> 
Well, it is my opinion that altering the settings this way is the right thing to
do for a distro, but I can see your point. (And since I've never seriously used
anything else than Debian, I admit my opinion is probably biased.)

> Anyway, have you tried setting LUA_PATH in the environment? If that does not
> work, then we can think of altering luatex itself.
> 
Setting LUA_PATH works like a charm. Thanks for the suggestion, I completely
forgot it.

Manuel.


More information about the luatex mailing list