From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Federico Beffa Newsgroups: gmane.lisp.guile.user Subject: Re: guile-2.0.11 installation on system with 2.0.5 Date: Mon, 15 Sep 2014 13:46:07 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1410781589 5671 80.91.229.3 (15 Sep 2014 11:46:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 11:46:29 +0000 (UTC) To: chris@cvine.freeserve.co.uk, guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Sep 15 13:46:22 2014 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XTUjd-0003jK-QE for guile-user@m.gmane.org; Mon, 15 Sep 2014 13:46:21 +0200 Original-Received: from localhost ([::1]:59029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTUjd-0003Gf-Cz for guile-user@m.gmane.org; Mon, 15 Sep 2014 07:46:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTUjS-0003GW-Q8 for guile-user@gnu.org; Mon, 15 Sep 2014 07:46:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTUjR-0001YT-1W for guile-user@gnu.org; Mon, 15 Sep 2014 07:46:10 -0400 Original-Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:62975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTUjQ-0001YJ-Qb for guile-user@gnu.org; Mon, 15 Sep 2014 07:46:08 -0400 Original-Received: by mail-la0-f52.google.com with SMTP id gq15so1805341lab.39 for ; Mon, 15 Sep 2014 04:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=r025JJDjC83VF6ImF2Tl2FU0b6/hNw5OYSq8YbtdKvQ=; b=LQpQurW0E1DBdmV7SkTVZiwBJ/KnuAr6Z/Po5o6gwenw8CLxjwK8HeuzIs3vAWFM8/ NRtpZ5VN4pa4+KYif7a6uYrVJV5TmoPxwBJ+f7oMUJSy7MPhtFXuI6II7nr86AIRw/20 8q5vof1TkPUC2Lymu5fk8YGZh7GDxFhO+l5JAnKNoPkbWzsE91VF6UFTxcj6r7BiVgYk 9nsfEYmKZUjjjcx/RafMzSoBhyPeKN33WO7YnOcMMvbQvPpGnC2bSlxA+gq7pvxmKwbP oDpYQfGGj82RuwphuVrfP9CC4riZXvYgZwE3m29h6ZDWeW8kViT46BG/t/uoy+eCxpM5 OVnQ== X-Received: by 10.152.163.66 with SMTP id yg2mr12954831lab.38.1410781567709; Mon, 15 Sep 2014 04:46:07 -0700 (PDT) Original-Received: by 10.114.26.101 with HTTP; Mon, 15 Sep 2014 04:46:07 -0700 (PDT) X-Google-Sender-Auth: A8sYZKsYzvw6_qGtKwhxTvXzGJw X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::234 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11510 Archived-At: Chris Vine writes: > On Sun, 14 Sep 2014 21:16:39 -0400 > mhw@netris.org wrote: >> Federico Beffa writes: >> >> > Neil Jerram writes: >> > >> >> >> >> This is just a guess, but what happens if you do this: >> >> >> >> $ LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/guile >> >> >> >> Regards, >> >> Neil >> > >> > With this it works! >> > >> > I notice that there is an /etc/ld.so.cache file. Do I somehow need >> > to update it? >> >> Yes, you update it by running "ldconfig" as root. This needs to be >> done when installing libraries outside of your package manager, not >> only for Guile, but for essentially all packages containing libraries. > > I would not recommend doing that where the OP has two _binary > compatible_ versions of the same library in different prefixes (as he > appears to have), otherwise the one which will be found and linked in > will depend on the dynamic linker's look-up order from > reading /etc/ld.so.conf. This could be the old micro version where in > a given case the OP in fact wants the new one, or conversely the new > micro version where he in fact wants the old one. > > Presumably in the general case he wants the micro version supplied by > the distribution's package manager to be linked in, otherwise he would > simply have replaced that one with the (binary compatible) newer > version of the same library. Presumably also he wants the updated > version which he has installed to be linked in instead only when > specially called. If that is right, he is much better off putting his > updated version in a directory which is _not_ specified > in /etc/ld.so.conf, and invoking it on the occasions when he does not > want the general case to apply by setting the LD_LIBRARY_PATH > environmental variable for that invocation. Then he is guaranteed to > have the correct version loaded in. > > Chris Your guess is correct: The distribution that I'm using (Debian wheezy) ships 2.0.5 as the newest guile version and I need to keep it to satisfy dependencies of other distribution supplied packages. However, I would like to experiment with a newer version of guile. I will then follow your advice and install it in a different directory. Thanks for all the explanations! Regards, Fede