From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: sbcl/glibc troubles Date: Thu, 13 Sep 2018 09:47:49 +0200 Message-ID: <87tvmt7s9m.fsf@ambrevar.xyz> References: <87y3c66qd3.fsf@jnanam.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0MM2-0004fr-A5 for help-guix@gnu.org; Thu, 13 Sep 2018 03:47:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0MLw-0006Dl-UZ for help-guix@gnu.org; Thu, 13 Sep 2018 03:47:56 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:39273) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g0MLw-0006AE-FM for help-guix@gnu.org; Thu, 13 Sep 2018 03:47:52 -0400 In-reply-to: <87y3c66qd3.fsf@jnanam.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Benjamin Slade Cc: Guix-Help --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 prog= rams like Next browser and cl-torrents. CFFI is the Common Lisp C Foreign Function Interface. It looks up librarie= s 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 t= his variable. Basically all you need is to call =2D-8<---------------cut here---------------start------------->8--- (ql:quickload :cffi) (push (format nil "~a/.guix-profile/lib/" (uiop:getenv "HOME")) cffi:*forei= gn-library-directories*) =2D-8<---------------cut here---------------end--------------->8--- before calling quickload. Note that the trailing "/" in the library path is important. Hope that helps! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAluaFiUACgkQm9z0l6S7 zH9vUQf+OO+DAcHwMOVp4VKi3Zk+G3f9IRvJMjbeoPsYJsO2hIrSwEyWv0ui7jp8 j9OBYhTn73yij2feFmCPwTsGq9H0v8OmFE7PRMxSUZcIjlUo/bu9yVdkDg2GbGGa 7lk3jApVsBfKF5CvICB5WN6ehiAlyLS/MGJWnK5+EtQ56yzwl0XG4+azZK2NkeJM EBZqVJzhZZEEGvTFbn2yaKhNx8t7hLXmrnqJM2O9aUk2Mg2pJyTdp+ccYRwJF/Sk r5HG4vuHoScqWZ4b+RV+u4r4LPY9OjL+82gJouMScqBjzz6nbpYfmp2G34I6n9X4 O77T8IGKtEs//rI/obqoM+5M/D6PeQ== =VczG -----END PGP SIGNATURE----- --=-=-=--