|
Am 24.08.2014 um 16:47 schröbte Dirk Laurie:
Why, if I say package.cpath="?.so" does Lua fail to find the module, but if I say package.cpath="./?.so" Lua does find it?
From `man dlopen`:
If filename contains a slash ("/"), then it is interpreted as a (relative or absolute) pathname. Otherwise, the dynamic linker searches for the library as follows (see ld.so(8) for further details): ...
And like with `$PATH`, the current working directory is not included by default.
Philipp