From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.bugs Subject: Re: (dynamic-link) ignores PREFIX/lib and $LD_LIBRARY_PATH Date: Tue, 18 Jun 2002 11:01:12 -0700 Sender: bug-guile-admin@gnu.org Message-ID: References: Reply-To: ttn@glug.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1024423598 3922 127.0.0.1 (18 Jun 2002 18:06:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 18 Jun 2002 18:06:38 +0000 (UTC) Cc: bug-guile@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17KNNG-000111-00 for ; Tue, 18 Jun 2002 20:06:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17KNNF-0000z5-00; Tue, 18 Jun 2002 14:06:37 -0400 Original-Received: from ca-crlsbd-u5-c4a-a-172.crlsca.adelphia.net ([24.48.214.172] helo=giblet) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17KNLr-0000tm-00 for ; Tue, 18 Jun 2002 14:05:12 -0400 Original-Received: from ttn by giblet with local (Exim 3.35 #1 (Debian)) id 17KNI0-0005HI-00; Tue, 18 Jun 2002 11:01:12 -0700 Original-To: prj@po.cwru.edu In-Reply-To: (prj@po.cwru.edu) Errors-To: bug-guile-admin@gnu.org X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GUILE, GNU's Ubiquitous Extension Language List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.bugs:320 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:320 From: prj@po.cwru.edu (Paul Jarc) Date: Tue, 18 Jun 2002 12:02:21 -0400 I have guile 1.4.1 installed in an unusual place, so PREFIX/lib isn't in the usual search path for shared libraries. It seems guile should always search PREFIX/lib, preferably before the systemwide directories and after those listed in $LD_LIBRARY_PATH. (Actually, it should search all the -rpath directories that the binary was linked with, which should (and does) include PREFIX/lib.) When I evaluate (use-modules (ice-9 readline)), guile search only /lib when looking for libguilereadline.so (not even /usr/lib). If I set $LD_LIBRARY_PATH to include PREFIX/lib, then guile looks there first and finds it, but keeps looking anyway and still fails: access("/package/host/localhost/guile-1.4.1-1/lib/libguilereadline.so", R_OK) = 0 access("/lib/libguilereadline.so", R_OK) = -1 ENOENT (No such file or directory) open("/lib/libguilereadline.so", O_RDONLY) = -1 ENOENT (No such file or directory) yeah, 1.4.1 tries to follow the nascent conventions cobbled together in 1.6.x and HEAD, which require these kinds of env var weirdness. the fix is to install libguilereadline et al "internally" (under $pkglibdir) and reference them directly. personally, i use as ~/bin/guile for now (until 1.4.2 release): #!/bin/bash # (prefix is /tmp/a/b/c) export LD_LIBRARY_PATH=/tmp/a/b/c/lib:$LD_LIBRARY_PATH export PATH=/tmp/a/b/c/bin:$PATH exec guile "$@" could you post platform info? thi _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile