[plt-scheme] SQLite

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue Jan 30 13:19:46 EST 2007

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

On 1/30/07, Eli Barzilay <eli at barzilay.org> wrote:
> On Jan 30, Gregory Woodhouse wrote:
> > Come to think of it, I've lost track of the original question. Is it
> > where to search for dynamic libraries, or where to put them so
> > dlopen() will find them?
>
> A good summary of the problem is this (incorrect) blurb from Jay's
> sqlite library:
>
>   If you have a problem loading the sqlite library, you need
>   to change one of the first lines to the commented out
>   line. This seems to be a problem with the FFI library.  If
>   you are changing _sqlite.ss_ you will probably need to look
>   at this, but otherwise you won't.
>
> which refers to these lines in "sqlite-ffi.ss":
>
>   (define sqlite (ffi-lib "libsqlite3"))
>   ;(define sqlite (ffi-lib "/sw/lib/libsqlite3"))
>
> The text is incorrect -- there is no problem with the foreign
> interface.  If you use "libsqlite3" for the library name, it will
> simply use `dlopen()' with "libsqlite3.dylib" on OSX.  The real
> problem is that `dlopen()' will not (AFAIK) look for the library in
> places like "/sw/lib" in the default configuration.
>
> --
>           ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                   http://www.barzilay.org/                 Maze is Life!
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


-- 
Jay McCarthy <jay.mccarthy at gmail.com>
http://jay.teammccarthy.org


Posted on the users mailing list.