unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Install Guile 2.0.11 failed on L-Ubuntu 12.04
@ 2014-05-24 21:21 mark damerell
  2014-05-25  5:12 ` Germán Arias
  0 siblings, 1 reply; 9+ messages in thread
From: mark damerell @ 2014-05-24 21:21 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 1773 bytes --]

Trying to install guile 2.0.11 on L-ubuntu 12.04. Shell is /bin/bash .

Downloaded the tarfile from the Gnu website.

configured with no options

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.


make install ran with no visible error.


make installcheck failed.  After several "nothing to do" messages, it said:

make[1]: Entering directory `/home/manager/downloads/guile-2.0.11/examples'
/bin/mkdir -p box
gcc `PATH=/usr/local/bin:$PATH PKG_CONFIG_PATH=/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


The shell command

guile

produces

guile: error while loading shared libraries: libguile-2.0.so.22: cannot
open shared object file: No such file or directory


find(1) found both files:

/usr/local/include/guile/2.0/libguile.h
/usr/local/lib/libguile-2.0.so.22


I conjecture that  gcc  was using incorrect search paths. So I did:

printenv | grep -i path

and got:

XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
DEFAULTS_PATH=/usr/share/gconf/Lubuntu.default.path
PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
MANDATORY_PATH=/usr/share/gconf/Lubuntu.mandatory.path


I expected to see a  CPATH  and a  LIBRARY_PATH  as described in   man gcc.

Please is this problem known? what should I do about it? Thank you.

[-- Attachment #2: Type: text/html, Size: 2079 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Install Guile 2.0.11 failed on L-Ubuntu 12.04
  2014-05-24 21:21 mark damerell
@ 2014-05-25  5:12 ` Germán Arias
  2014-05-25  9:10   ` Chris Vine
  0 siblings, 1 reply; 9+ messages in thread
From: Germán Arias @ 2014-05-25  5:12 UTC (permalink / raw)
  To: guile-user

Hi Mark

On 2014-05-24 15:21:11 -0600 mark damerell <markdamerell@googlemail.com> wrote:

> Trying to install guile 2.0.11 on L-ubuntu 12.04. Shell is /bin/bash .
> 
> Downloaded the tarfile from the Gnu website.
> 
> configured with no options
> 
> 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.
> 
> 
> make install ran with no visible error.
> 
> 
> make installcheck failed.  After several "nothing to do" messages, it said:
> 
> make[1]: Entering directory `/home/manager/downloads/guile-2.0.11/examples'
> /bin/mkdir -p box
> gcc `PATH=/usr/local/bin:$PATH PKG_CONFIG_PATH=/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
> 
> 
> The shell command
> 
> guile
> 
> produces
> 
> guile: error while loading shared libraries: libguile-2.0.so.22: cannot
> open shared object file: No such file or directory
> 
> 
> find(1) found both files:
> 
> /usr/local/include/guile/2.0/libguile.h
> /usr/local/lib/libguile-2.0.so.22
> 
> 
> I conjecture that  gcc  was using incorrect search paths. So I did:
> 
> printenv | grep -i path
> 
> and got:
> 
> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> DEFAULTS_PATH=/usr/share/gconf/Lubuntu.default.path
> PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> MANDATORY_PATH=/usr/share/gconf/Lubuntu.mandatory.path
> 
> 
> I expected to see a  CPATH  and a  LIBRARY_PATH  as described in   man gcc.
> 
> Please is this problem known? what should I do about it? Thank you.
> 

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:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

To use the headers, you will need make a symbolic link at /usr/include. Something like:

sudo ln -s /usr/local/include/guile/ /usr/include/

Hope this help.

Germán.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Install Guile 2.0.11 failed on L-Ubuntu 12.04
  2014-05-25  5:12 ` Germán Arias
@ 2014-05-25  9:10   ` Chris Vine
  2014-05-25 23:59     ` Germán Arias
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Vine @ 2014-05-25  9:10 UTC (permalink / raw)
  To: guile-user

On Sat, 24 May 2014 23:12:21 -0600
Germán Arias <germanandre@gmx.es> wrote:
> Hi Mark
> 
> On 2014-05-24 15:21:11 -0600 mark damerell
> <markdamerell@googlemail.com> wrote:
> 
> > Trying to install guile 2.0.11 on L-ubuntu 12.04. Shell
> > is /bin/bash .
> > 
> > Downloaded the tarfile from the Gnu website.
> > 
> > configured with no options
> > 
> > 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.
> > 
> > 
> > make install ran with no visible error.
> > 
> > 
> > make installcheck failed.  After several "nothing to do" messages,
> > it said:
> > 
> > make[1]: Entering directory
> > `/home/manager/downloads/guile-2.0.11/examples' /bin/mkdir -p box
> > gcc `PATH=/usr/local/bin:$PATH
> > PKG_CONFIG_PATH=/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
> > 
> > 
> > The shell command
> > 
> > guile
> > 
> > produces
> > 
> > guile: error while loading shared libraries: libguile-2.0.so.22:
> > cannot open shared object file: No such file or directory
> > 
> > 
> > find(1) found both files:
> > 
> > /usr/local/include/guile/2.0/libguile.h
> > /usr/local/lib/libguile-2.0.so.22
> > 
> > 
> > I conjecture that  gcc  was using incorrect search paths. So I did:
> > 
> > printenv | grep -i path
> > 
> > and got:
> > 
> > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
> > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> > DEFAULTS_PATH=/usr/share/gconf/Lubuntu.default.path
> > PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> > MANDATORY_PATH=/usr/share/gconf/Lubuntu.mandatory.path
> > 
> > 
> > I expected to see a  CPATH  and a  LIBRARY_PATH  as described in
> > man gcc.
> > 
> > Please is this problem known? what should I do about it? Thank you.
> > 
> 
> 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:
> 
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
> 
> To use the headers, you will need make a symbolic link
> at /usr/include. Something like:
> 
> sudo ln -s /usr/local/include/guile/ /usr/include/
> 
> 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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Install Guile 2.0.11 failed on L-Ubuntu 12.04
  2014-05-25  9:10   ` Chris Vine
@ 2014-05-25 23:59     ` Germán Arias
  2014-05-26 21:10       ` Chris Vine
  0 siblings, 1 reply; 9+ messages in thread
From: Germán Arias @ 2014-05-25 23:59 UTC (permalink / raw)
  To: Chris Vine; +Cc: guile-user

On 2014-05-25 03:10:55 -0600 Chris Vine <chris@cvine.freeserve.co.uk> wrote:

[...]
> 
> Yuck.  

This is exactly what one does not expect in a free software list, where is supposed the users can share and learn together without being offended.

Germán.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Install Guile 2.0.11 failed on L-Ubuntu 12.04
  2014-05-25 23:59     ` Germán Arias
@ 2014-05-26 21:10       ` Chris Vine
  2014-05-27  6:28         ` Germán Arias
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Vine @ 2014-05-26 21:10 UTC (permalink / raw)
  To: guile-user

On Sun, 25 May 2014 17:59:08 -0600
Germán Arias <germanandre@gmx.es> wrote:
> On 2014-05-25 03:10:55 -0600 Chris Vine <chris@cvine.freeserve.co.uk>
> wrote:
> 
> [...]
> > 
> > Yuck.  
> 
> This is exactly what one does not expect in a free software list,
> where is supposed the users can share and learn together without
> being offended.

It is not offensive, so there is no need to be offended.

Chris



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Install Guile 2.0.11 failed on L-Ubuntu 12.04
  2014-05-26 21:10       ` Chris Vine
@ 2014-05-27  6:28         ` Germán Arias
  0 siblings, 0 replies; 9+ messages in thread
From: Germán Arias @ 2014-05-27  6:28 UTC (permalink / raw)
  To: Chris Vine; +Cc: guile-user

On 2014-05-26 15:10:40 -0600 Chris Vine <chris@cvine.freeserve.co.uk> wrote:

> On Sun, 25 May 2014 17:59:08 -0600
> Germán Arias <germanandre@gmx.es> wrote:
>> On 2014-05-25 03:10:55 -0600 Chris Vine <chris@cvine.freeserve.co.uk>
>> wrote:
>> 
>> [...]
>>> > Yuck. 
>> This is exactly what one does not expect in a free software list,
>> where is supposed the users can share and learn together without
>> being offended.
> 
> It is not offensive, so there is no need to be offended.
> 
> Chris
> 

OK

Germán.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Install Guile 2.0.11 failed on L-Ubuntu 12.04
@ 2014-05-27  9:32 mark damerell
  2014-05-27 10:38 ` Chris Vine
  0 siblings, 1 reply; 9+ messages in thread
From: mark damerell @ 2014-05-27  9:32 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]

Thank you for your most helpful replies. I did:

1:   sudo ldconfig

Output:

/sbin/ldconfig.real: /usr/local/lib/libguile-2.0.so.22.7.2-gdb.scm is not
an
ELF file - it has the wrong magic bytes at the start.

2:   pkg-config  --cflags  --libs  guile-2.0

and now things are working (I have only done some very simple things
to test). I do not have the foggiest idea  why it was so easy. In theory,
neither 1 nor 2 should have worked.

1: if  gcc  really did not know to search in   /usr/local/lib  I would
have expected all manner of previous successful compiles to fail.

File    /etc/ld.so.conf.d/libc.conf (date April 2012)  lists
/usr/local/lib  .
No file in this directory mentions Guile.

2: From the man page I expected to have to insert the output
of  2  into a Makefile. (Which Makefile? where? I dont know. )
Also I dont think I  sudo-ed  2.

I intend to use both  make check  and  make installcheck  if I have
to re-install because they test different things. I feel confident that
the problem I reported in my OP is much more likely a bug in   make
install   than in   make installcheck  .

Thank you

[-- Attachment #2: Type: text/html, Size: 1417 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Install Guile 2.0.11 failed on L-Ubuntu 12.04
  2014-05-27  9:32 Install Guile 2.0.11 failed on L-Ubuntu 12.04 mark damerell
@ 2014-05-27 10:38 ` Chris Vine
  2014-05-28  8:36   ` mark damerell
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Vine @ 2014-05-27 10:38 UTC (permalink / raw)
  To: mark damerell; +Cc: guile-user

On Tue, 27 May 2014 10:32:59 +0100
mark damerell <markdamerell@googlemail.com> wrote:
> Thank you for your most helpful replies. I did:
> 
> 1:   sudo ldconfig
> 
> Output:
> 
> /sbin/ldconfig.real: /usr/local/lib/libguile-2.0.so.22.7.2-gdb.scm is
> not an
> ELF file - it has the wrong magic bytes at the start.

Either forget about it, or remove libguile-2.0.so.22.7.2-gdb.scm and
don't use the guile interface for gdb.  It is a meaningless bleat from
libconfig, which assumes too much about what is in library directories.

[snip] 
> 1: if  gcc  really did not know to search in   /usr/local/lib  I would
> have expected all manner of previous successful compiles to fail.
> 
> File    /etc/ld.so.conf.d/libc.conf (date April 2012)  lists
> /usr/local/lib  .
> No file in this directory mentions Guile.

It looks like you just forgot to run ldconfig after installing guile.

> 2: From the man page I expected to have to insert the output
> of  2  into a Makefile. (Which Makefile? where? I dont know. )
> Also I dont think I  sudo-ed  2.

http://www.gnu.org/software/guile/manual/html_node/A-Sample-Guile-Main-Program.html#A-Sample-Guile-Main-Program

> I intend to use both  make check  and  make installcheck  if I have
> to re-install because they test different things. I feel confident
> that the problem I reported in my OP is much more likely a bug in
> make install   than in   make installcheck  .

I feel confident you are wrong.

Chris



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Install Guile 2.0.11 failed on L-Ubuntu 12.04
  2014-05-27 10:38 ` Chris Vine
@ 2014-05-28  8:36   ` mark damerell
  0 siblings, 0 replies; 9+ messages in thread
From: mark damerell @ 2014-05-28  8:36 UTC (permalink / raw)
  To: Chris Vine; +Cc: guile-user

[-- Attachment #1: Type: text/plain, Size: 116 bytes --]

> It looks like you just forgot to run ldconfig after installing guile.

The instructions did not tell me to do so.

[-- Attachment #2: Type: text/html, Size: 216 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-28  8:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27  9:32 Install Guile 2.0.11 failed on L-Ubuntu 12.04 mark damerell
2014-05-27 10:38 ` Chris Vine
2014-05-28  8:36   ` mark damerell
  -- strict thread matches above, loose matches on Subject: below --
2014-05-24 21:21 mark damerell
2014-05-25  5:12 ` Germán Arias
2014-05-25  9:10   ` Chris Vine
2014-05-25 23:59     ` Germán Arias
2014-05-26 21:10       ` Chris Vine
2014-05-27  6:28         ` Germán Arias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).