[plt-scheme] SQLite

From: Woodhouse, Gregory J. (Gregory.Woodhouse at va.gov)
Date: Tue Jan 30 13:25:04 EST 2007

 See my previous message quoting the man page dlopen(3). If the
environment variable is not respected (perhaps because it's overridden
by an explicit path in a make file or script?), then something's wrong.

Here's the man page excerpt again:

SEARCHING
     dlopen() uses a series of steps to find a compatible mach-o file.
The
     first compatible file found is used.


     1) If the directory specified by path does not contain a slash '/'
(i.e.
     it is a leaf name) then the environment variable LD_LIBRARY_PATH is
used.
     LD_LIBRARY_PATH should be a colon seperated list of directories.
     dlopen() searches each directory, in the order specified, for the
leaf
     name path.


     2) If DYLD_LIBRARY_PATH is set, then those directories are
searched, in
     order, with the leaf name of path.


     3) If DYLD_FALLBACK_LIBRARY_PATH is set, then those directories are
     searched, in order with the leaf name of path.  If DYLD_FALL-
     BACK_LIBRARY_PATH is not set, then the following directories are
     searched: $HOME/lib, /usr/local/lib, /usr/lib

-----Original Message-----
From: plt-scheme-bounces at list.cs.brown.edu
[mailto:plt-scheme-bounces at list.cs.brown.edu] On Behalf Of Jay McCarthy
Sent: Tuesday, January 30, 2007 10:20 AM
To: Eli Barzilay
Cc: Hans Oesterholt-Dijkema; geoff at knauth.org;
plt-scheme at list.cs.brown.edu
Subject: Re: [plt-scheme] SQLite

I believe I referred to this as a problem because I changed
LD_LIBRARY_PATH to include /sw/lib, a change which I would expect to be
respected. Is there another environment variable to use with dlopen on
OS X?

Jay


Posted on the users mailing list.