From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: (dynamic-link "libm") doesn't work on guile Date: Thu, 7 Jan 2016 21:30:49 -0500 Message-ID: <20160108023049.GA26535@jasmine> References: <87bn8x65i9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHMpJ-0004Cy-IO for help-guix@gnu.org; Thu, 07 Jan 2016 21:30:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHMpF-0000Jz-Ew for help-guix@gnu.org; Thu, 07 Jan 2016 21:30:53 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:32899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHMpF-0000Jd-97 for help-guix@gnu.org; Thu, 07 Jan 2016 21:30:49 -0500 Content-Disposition: inline In-Reply-To: <87bn8x65i9.fsf@gmail.com> 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: Alex Vong Cc: help-guix@gnu.org On Thu, Jan 07, 2016 at 06:36:14PM +0800, Alex Vong wrote: > Hi people, > > > I got the following error message when trying to dlopen a shared library > in ~/guix-profile/bin/guile installed by guix: > > scheme@(guile-user)> (dynamic-link "libm") > ERROR: In procedure dynamic-link: > ERROR: In procedure dynamic-link: file: "libm", message: "file not found" > > Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. > > > I think it is a guix-specific problem since /usr/bin/guile installed by > debian works fine: > > scheme@(guile-user)> (dynamic-link "libm") > $1 = # > > > Any idea? Usually when a Debian package works while the Guix package fails, I examine the Debian packaging, especially the file at 'debian/rules'. You can find those on the package web page [0] as the [...]debian.tar.xz file and surely through some command-line tool. [0] Make sure to select your Debian release (Jessie, Stretch, etc): https://packages.debian.org/stretch/guile-2.0 > > Thanks, > Alex >