From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Benjamin Slade <slade@jnanam.net>
Cc: Guix-Help <help-guix@gnu.org>
Subject: Re: sbcl/glibc troubles
Date: Thu, 13 Sep 2018 09:47:49 +0200 [thread overview]
Message-ID: <87tvmt7s9m.fsf@ambrevar.xyz> (raw)
In-Reply-To: <87y3c66qd3.fsf@jnanam.net>
[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]
This is the typical issue you'll always run into when using Common Lisp with
foreign libraries.
I know this very well since I'm working on packaging other Common Lisp programs
like Next browser and cl-torrents.
CFFI is the Common Lisp C Foreign Function Interface. It looks up libraries in
/usr/lib... by default. You want to change this path in
`cffi:*foreign-library-directories*`. Ideally, you would add the canonical path
of all the required libraries there. If you want to go the lazy way, simply
install the libraries in your user profile and add ~/.guix-profile/lib to this
variable.
Basically all you need is to call
--8<---------------cut here---------------start------------->8---
(ql:quickload :cffi)
(push (format nil "~a/.guix-profile/lib/" (uiop:getenv "HOME")) cffi:*foreign-library-directories*)
--8<---------------cut here---------------end--------------->8---
before calling quickload.
Note that the trailing "/" in the library path is important.
Hope that helps!
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2018-09-13 7:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-13 3:14 sbcl/glibc troubles Benjamin Slade
2018-09-13 7:47 ` Pierre Neidhardt [this message]
2018-09-14 2:52 ` Benjamin Slade
2018-09-14 6:51 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tvmt7s9m.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=help-guix@gnu.org \
--cc=slade@jnanam.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.