<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 10:31 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"><span class="">2015-03-16 10:04 GMT+02:00 luigi scarso <<a href="mailto:luigi.scarso@gmail.com">luigi.scarso@gmail.com</a>>:<br>
> On Mon, Mar 16, 2015 at 8:33 AM, Dirk Laurie <<a href="mailto:dirk.laurie@gmail.com">dirk.laurie@gmail.com</a>> wrote:<br>
</span><span class="">>> 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<br>
>> defeats the purpose of kpse.<br>
><br>
> here<br>
> $ kpsewhere core.so<br>
> /opt/luatex/standalone-mkiv-new/tex/texmf-linux-64/bin/lib/luatex/lua/swiglib/qpdf/5.0.1/core.so<br>
<br>
</span>This tells me that on your system,<br>
<br>
SELFAUTOLOC=/opt/luatex/standalone-mkiv-new/tex/texmf-linux-64/bin<br>
<br>
Presumably SELFAUTOLOC is where the TeX binaries are. On Ubuntu,<br>
they are in /usr/bin. It is hardly proper for an ordinary user, even one with<br>
sudo permission, to make a directory /usr/bin/lib/luatex/lua/ for personal<br>
stuff, but I have checked that doing so, besides giving one a thrill like<br>
sneaking into the headmaster's office when he is not there, does work.<br>
And that /usr/local/bin/lib/luatex/lua/ and $HOME/bin/lib/luatex/lua/ do not.<br>
<br>
So, at present the bottom line seems to be: user-written Lua scripts<br>
are OK for LuaTeX, but user-written C modules are OK only for those<br>
with superuser status.<br>
</blockquote></div><div class="gmail_extra">well a C modules compiled is a binary, so it could be reasonable.</div>But in any case <br>package.loadlib (libname, funcname)<br clear="all"><div><div><div>should work (libname is something like /<my_path>/core.so).</div></div></div><div><br></div>-- <br><div class="gmail_signature">luigi<br></div>
</div></div>