[plt-scheme] using the ffi (ffi-lib)

From: Eli Barzilay (eli at barzilay.org)
Date: Tue May 1 00:44:21 EDT 2007

On Apr 30, Hans Oesterholt-Dijkema wrote:
> L.S.,
> 
> I'm doing this for sqlite3 on a Linux system (slackware 8):
> 
> ldconfig -p | grep sqlite3 --> /usr/local/lib/libsqlite3.so
> 
> mzscheme:
>  >(require (lib "foreign.ss"))
>  >(ffi-lib "libsqlite3")
> ffi-lib: couldn't open "libsqlite3.so" (libsqlite3.so: cannot open 
> shared object file: No such file or directory)
> 
>  === context ===
> repl-loop
> 
>  > (ffi-lib "/usr/local/lib/libsqlite3")
> #<ffi-lib>
> 
> Why doesn't it work with only "libsqlite3"?

I don't know how slackware is organized, but you should look into
adding /usr/local/lib in "/etc/ld.so.conf", or set your own
LD_LIBRARY_PATH environment variable.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.