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: Install Guile 2.0.11 failed on L-Ubuntu 12.04 Date: Sun, 25 May 2014 10:10:55 +0100 Message-ID: <20140525101055.0da6522e@bother.homenet> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1401009076 31439 80.91.229.3 (25 May 2014 09:11:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 May 2014 09:11:16 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun May 25 11:11:09 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 1WoUSR-0000zc-Iz for guile-user@m.gmane.org; Sun, 25 May 2014 11:11:07 +0200 Original-Received: from localhost ([::1]:50747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoUSR-000227-4y for guile-user@m.gmane.org; Sun, 25 May 2014 05:11:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoUSE-00021v-7X for guile-user@gnu.org; Sun, 25 May 2014 05:10:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WoUS9-00034l-1j for guile-user@gnu.org; Sun, 25 May 2014 05:10:54 -0400 Original-Received: from smtpout4.wanadoo.co.uk ([80.12.242.68]:17732 helo=smtpout.wanadoo.co.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoUS8-00034Q-Og for guile-user@gnu.org; Sun, 25 May 2014 05:10:48 -0400 Original-Received: from bother.homenet ([95.146.111.191]) by mwinf5d48 with ME id 69Al1o00J47pFd3039Am1D; Sun, 25 May 2014 11:10:46 +0200 X-ME-Helo: bother.homenet X-ME-Date: Sun, 25 May 2014 11:10:46 +0200 X-ME-IP: 95.146.111.191 Original-Received: from bother.homenet (localhost [127.0.0.1]) by bother.homenet (Postfix) with ESMTP id 76C158B825 for ; Sun, 25 May 2014 10:10:55 +0100 (BST) In-Reply-To: X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.23; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.68 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:11258 Archived-At: On Sat, 24 May 2014 23:12:21 -0600 Germ=E1n Arias wrote: > Hi Mark >=20 > On 2014-05-24 15:21:11 -0600 mark damerell > wrote: >=20 > > Trying to install guile 2.0.11 on L-ubuntu 12.04. Shell > > is /bin/bash . > >=20 > > Downloaded the tarfile from the Gnu website. > >=20 > > configured with no options > >=20 > > make check produced warnings and "unresolved" messages and one > > failure, bug 27450. It said "please report this" but I believe that > > as this is a known > > bug, you do not want me to. > >=20 > >=20 > > make install ran with no visible error. > >=20 > >=20 > > make installcheck failed. After several "nothing to do" messages, > > it said: > >=20 > > make[1]: Entering directory > > `/home/manager/downloads/guile-2.0.11/examples' /bin/mkdir -p box > > gcc `PATH=3D/usr/local/bin:$PATH > > PKG_CONFIG_PATH=3D/usr/local/lib/pkgconfig /usr/local/bin/guile-config > > compile` -c box/box.c -o box/box.o /usr/local/bin/guile: error > > while loading shared libraries: libguile-2.0.so.22: cannot open > > shared object file: No such file or directory > > box/box.c:22:22: fatal error: libguile.h: No such file or directory > > compilation terminated. > > make[1]: *** [box/box.o] Error 1 > >=20 > >=20 > > The shell command > >=20 > > guile > >=20 > > produces > >=20 > > guile: error while loading shared libraries: libguile-2.0.so.22: > > cannot open shared object file: No such file or directory > >=20 > >=20 > > find(1) found both files: > >=20 > > /usr/local/include/guile/2.0/libguile.h > > /usr/local/lib/libguile-2.0.so.22 > >=20 > >=20 > > I conjecture that gcc was using incorrect search paths. So I did: > >=20 > > printenv | grep -i path > >=20 > > and got: > >=20 > > XDG_SESSION_PATH=3D/org/freedesktop/DisplayManager/Session0 > > XDG_SEAT_PATH=3D/org/freedesktop/DisplayManager/Seat0 > > DEFAULTS_PATH=3D/usr/share/gconf/Lubuntu.default.path > > PATH=3D/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbi= n:/usr/bin:/sbin:/bin:/usr/games > > MANDATORY_PATH=3D/usr/share/gconf/Lubuntu.mandatory.path > >=20 > >=20 > > I expected to see a CPATH and a LIBRARY_PATH as described in > > man gcc. > >=20 > > Please is this problem known? what should I do about it? Thank you. > >=20 >=20 > In general, when you install something from a source tarball this is > installed in non standard path. So, to use guile you should add the > path where this is installed. At your file ".profile" (in your user > directory) you could add: >=20 > export LD_LIBRARY_PATH=3D$LD_LIBRARY_PATH:/usr/local/lib >=20 > To use the headers, you will need make a symbolic link > at /usr/include. Something like: >=20 > sudo ln -s /usr/local/include/guile/ /usr/include/ >=20 > Hope this help. Yuck. It is much better to add /usr/local/lib to /etc/ld.so.conf (or one of the files in /etc/ld.so.conf.d) and run ldconfig. I am amazed that some distributions still do not do this by default. (The OP says he is using lubuntu, but standard ubuntu is installed on one of my computers and that does do so.) The correct way to find a header is by using pkg-config with guile's pkg-config file (guile-2.0.pc). If the build system's 'make installcheck' does not do this then it is technically a bug but 'make installcheck' is widely unused and/or broken for this amongst other reasons and is best ignored. Use 'make check' instead, which uses the internal build tree. And it is not a good idea to start making symlinks. Chris