From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: (dynamic-link "libm") doesn't work on guile Date: Fri, 08 Jan 2016 11:07:38 +0100 Message-ID: <877fjkmljp.fsf@gnu.org> References: <87bn8x65i9.fsf@gmail.com> <87a8ogbvii.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHTxQ-0004My-MK for help-guix@gnu.org; Fri, 08 Jan 2016 05:07:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHTxM-0008Li-GJ for help-guix@gnu.org; Fri, 08 Jan 2016 05:07:44 -0500 In-Reply-To: <87a8ogbvii.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Fri, 08 Jan 2016 11:27:49 +0800") 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-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: =?utf-8?B?5a6L5paH5q2m?= Cc: help-guix@gnu.org, Alex Vong iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > The `dynamic-link` will search and dlopen the shared library. The guile > from guix doesn=E2=80=99t search common places like =E2=80=98/usr/lib=E2= =80=99, so you need to > set the environment variable `LD_LIBRARY_PATH` or `LTDL_LIBRARY_PATH` > explicitly to the directory contains `libm.so`. =E2=80=98LTDL_LIBRARY_PATH=E2=80=99 is safer in that it only affects softwa= re that uses libltdl=E2=80=99s dlopen facility. > by the way, since guile is linked with libm.so, we can just use > `(dynamic-link)` here. Yup! Ludo=E2=80=99.