Re: standalone executable on Mac OS X (as independent as possible from user's system)

Stijn Heymans <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAF79SBVanfJtggKGY0Z3S+8JaEnXzfr05DNow+EPu-4NKCxHrA@mail.gmail.com>
On Thu, Oct 10, 2013 at 12:50 PM, Stijn Heymans <[email protected]>wrote:

> Other things I was thinking of is changing the DYLD_LIBRARY_PATH but
> server_pl
> contains absolute paths to libncurses.5.6.dylib it seems.
>

and that does not seem to matter actually. I just moved
/usr/lib/libncurses.5.4.dylib to ./pl ("pl" is a subdirectory of the
directory where server_pl would be located).

Running server_pl then results in:

dyld: Library not loaded: /usr/lib/libncurses.5.4.dylib
  Referenced from: ..../server_pl
  Reason: image not found
Trace/BPT trap: 5

But just setting the following variable to the "./pl" seems to get things
working again:

$ export DYLD_FALLBACK_LIBRARY_PATH="./pl"

If I run server_pl I no longer get the missing library error (even though
it is no longer at its original /usr/lib/location)

So well, I think that's good news :)
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.