From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Vine Newsgroups: gmane.lisp.guile.user Subject: Re: guile-2.0.11 installation on system with 2.0.5 Date: Mon, 15 Sep 2014 00:07:56 +0100 Message-ID: <20140915000756.666dade7@bother.homenet> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410736098 31162 80.91.229.3 (14 Sep 2014 23:08:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Sep 2014 23:08:18 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Sep 15 01:08:11 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 1XTItu-0007CZ-Qe for guile-user@m.gmane.org; Mon, 15 Sep 2014 01:08:10 +0200 Original-Received: from localhost ([::1]:56450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTItu-00062P-Bg for guile-user@m.gmane.org; Sun, 14 Sep 2014 19:08:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTIti-00060W-5W for guile-user@gnu.org; Sun, 14 Sep 2014 19:08:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTItc-0008L7-W4 for guile-user@gnu.org; Sun, 14 Sep 2014 19:07:58 -0400 Original-Received: from smtpout2.wanadoo.co.uk ([80.12.242.42]:43801 helo=smtpout.wanadoo.co.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTItc-0008KF-Qo for guile-user@gnu.org; Sun, 14 Sep 2014 19:07:52 -0400 Original-Received: from bother.homenet ([95.151.180.56]) by mwinf5d28 with ME id rB7q1o0041DQSUn03B7qKk; Mon, 15 Sep 2014 01:07:50 +0200 X-ME-Helo: bother.homenet X-ME-Date: Mon, 15 Sep 2014 01:07:50 +0200 X-ME-IP: 95.151.180.56 Original-Received: from bother.homenet (localhost [127.0.0.1]) by bother.homenet (Postfix) with ESMTP id 6A78F899AE for ; Mon, 15 Sep 2014 00:07:56 +0100 (BST) In-Reply-To: X-Mailer: Claws Mail 3.10.0 (GTK+ 2.24.24; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.42 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:11502 Archived-At: On Sun, 14 Sep 2014 17:42:58 +0200 Federico Beffa wrote: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: >=20 > > It may be that, while /usr/local/bin/guile is indeed from the new > > version, it ends up loading .scm and .go files from the old version. > > > > You could check that by running: > > > > strace -o log /usr/local/bin/guile --version > > > > and grepping for .scm and .go files in =E2=80=98log=E2=80=99. > > > > That could happen, for instance, if there=E2=80=99s a GUILE_LOAD_PATH or > > GUILE_LOAD_COMPILED_PATH environment variable pointing to > > /usr/share/guile/... > > >=20 > Yes, that's what happens. I can see libraries from /usr/share and > /usr/lib/guile being used. >=20 > I do not have any GUILE_LOAD_* environment variable defined. However, > I see in the "log" file generated as suggested that > the /etc/ld.so.cache file gets opened. Should I need somehow to > update it? If it is any use to you, to run guile-1.8 on a guile-2.0 system (which I rarely do) I set the following environmental variables in the script which starts guile and/or which compiles or loads anything which uses the 1.8 version of libguile. export LD_LIBRARY_PATH=3D/opt/guile18/lib export PATH=3D/opt/guile18/bin:$PATH export GUILE_LOAD_PATH=3D/opt/guile18/share/guile/1.8:/opt/guile18/share/= guile/site:/opt/guile18/share/guile export PKG_CONFIG_PATH=3D/opt/guile18/lib/pkgconfig:$PKG_CONFIG_PATH export LDFLAGS=3D-L/opt/guile18/lib:$LDFLAGS For guile-2.0 you will probably also want to set GUILE_LOAD_COMPILED_PATH. However, generally this is not a very sensible approach if you are upgrading the same minor version of guile. It would be better to build guile-2.0.11 using the debian build scripts and replace guile-2.0.5 entirely. Chris