[cffi-devel] Greetings ..

Greg Bennett gwbennett at sentex.ca
Sat Nov 22 15:43:40 UTC 2008


Kalyanov Dmitry wrote:
> В сообщении от Friday 21 November 2008 17:08:19 Greg Bennett написал(а):
>   
>> The attached material provides details from this effort during which
>> building cffi failed. I am sufficiently new to linux, asdf, and cffi
>> that I cannot tell  whether I face a difficulty with asdf or (not xor)
>> cffi. Since the break occurred in  processing
>> cffi.asd I have begun with the guess that it is to cffi-devel that I
>> might look for assistance.
>>     
>
>   
>> ;; I *do* have /usr/share/common-lisp/source/cl-cffi/src/utils.lisp but can 
>>     
> find no
>   
>> ;; trace of a file utils.x86f in /usr
>>     
>
> AFAIK, by default compiled files (fasls (fast loading files); utils.x86f is a 
> fasl)
> are stored near the source files. So, you do not have the permission to write
> the file. In debian/ubuntu, Common Lisp Controller is used to load libraries.
> Try using it to load cffi.
>
> As a general solution, install asdf-binary-locations (this is a library that
> tells asdf to store compiled binaries in separate directories). Or for 
> immediate solution, run lisp under root and load the cffi from there. 
> Subsequent loads should work from regular users.
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> cffi-devel mailing list
> cffi-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel
>   
Dmitry, thanks for your information. I tried the last first - running 
lisp as root - which worked well so that
I can now run the example files. Thus it seems that linux permissions 
were involved somewhere in the
processes.

The .x86f files were indeed installed near the source, both in 
directories under my home directory which
makes the permission issue slightly puzzling (at least to me). Perhaps 
other compiled files were installed
elsewhere as the work was done.

I shall certainly look into asdf-binary-locations.

Cheers /Greg Bennett




More information about the cffi-devel mailing list