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

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Tue May 1 13:07:21 EDT 2007

Ok, well thanks.

--Hans


Eli Barzilay schreef:
> On May  1, Hans Oesterholt-Dijkema wrote:
>   
>> Hi Eli,
>>
>> Thanks for your answer, but /usr/local/lib is in /etc/ld.so.conf.
>> ldconfig didn't work.
>>     
>
> Well, whatever the problem is, it's outside the scope of the foreigh
> interface -- it's basically doing a plain call to `ldopen'.
>
>
>   
>> 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.
>>>       
>
>   



Posted on the users mailing list.