<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 8:33 AM, Dirk Laurie <span dir="ltr"><<a href="mailto:dirk.laurie@gmail.com" target="_blank">dirk.laurie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I'm using luatex as installed by Ubuntu 14.04 LTS.<br>
<br>
A Lua script loaded by `luatex` inside`\directlua' does not consult<br>
package.path and package.cpath. It examines package.preload, and<br>
then tries the kpse lua searcher and the kpse C searcher.<br>
<br>
`kpsepath lua` and `kpsepath so` are not valid pathtypes, but I have<br>
discovered that I can put Lua scripts in $HOME/texmf/scripts/lua and<br>
`require` inside `\directlua` will find them with no need to `texhash`.<br>
<br>
However, packages provided as shared objects are not found if put<br>
there, and I have not discovered where in $HOME/texmf I can put them.<br>
The manual says they are looked for in<br>
<br>
    CLUAINPUTS=.:$SELFAUTOLOC/lib/{$progname,$engine,}/lua//<br>
<br>
but this path seems not to provide for $HOME/texmf. I could put<br>
a symbolic link to the .so files in `.` every time, but that really defeats<br>
the purpose of kpse.<br>
</blockquote></div><br>here<br clear="all"><div><div>$ kpsewhere core.so</div><div>/opt/luatex/standalone-mkiv-new/tex/texmf-linux-64/bin/lib/luatex/lua/swiglib/qpdf/5.0.1/core.so</div></div><div><br></div><div><br></div>-- <br><div class="gmail_signature">luigi<br></div>
</div></div>