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

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Tue May 1 06:55:00 EDT 2007

Hi Eli,

Thanks for your answer, but /usr/local/lib is in /etc/ld.so.conf.
ldconfig didn't work.

--Hans


Op 1/5/2007 schreef "Eli Barzilay" <eli at barzilay.org>:

>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.