Re: Explicit current directory needed, why?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Explicit current directory needed, why?
- From: Philipp Janda <siffiejoe@...>
- Date: 2014年8月25日 00:48:53 +0200
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