unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Ken Raeburn <raeburn@raeburn.org>
To: Mark Harig <idirectscm@aim.com>
Cc: bug-guile@gnu.org
Subject: Re: Missing and out-of-date information in guile.1, the Guile man page
Date: Wed, 19 Jan 2011 14:50:29 -0500	[thread overview]
Message-ID: <3D05815A-48F6-43E8-8A9D-5415972D032F@raeburn.org> (raw)
In-Reply-To: <8CD83CC14D7A7E0-1624-1AA70@webmail-m056.sysops.aol.com>

On Jan 16, 2011, at 14:38, Mark Harig wrote:
>> 
>> I'd say too OS-dependent; or more to do with how guile should be
>> properly installed, than how to use it once it is installed.
>> 
>> But on the other hand, I might be misunderstanding what you had in 
> mind;
>> if you'd like to propose some specific text...
>> 
> 
> If a user has followed the instructions in the section "Obtaining and
> Installing Guile", and installed guile in the "/usr/local/" directory
> tree, then, on systems that use the dynamic linker/loader ld.so or
> ld-linux.so*, the instructions in the section "Linking Guile into
> Programs" will fail because the new program 'simple-guile' will not be
> able to locate the shared library 'libguile-2.0.so*'.

I think the right answer for that is not to tell people that they have to set environment variables in order to run Guile programs, but to tell developers how to link programs properly so that they find the library at run time.  This tends to be somewhat platform-dependent, but often arguments like "-R" or "-rpath" are needed; libtool should just Do The Right Thing, if it's used.  I'm less familiar with pkg-config, but expect it should be have similarly.  In fact, the man page for pkg-config on my system (Mac OS X with MacPorts installed) says the "--libs-only-L" option "prints the -L/-R part" of the link options, which suggests to me that pkg-config is indeed supposed to be printing options to set the run-time load path.  If it's not doing that for you, then we should figure out why not.

In short, don't document how to work around a bug, if you can just fix the bug. :-)

Ken


  reply	other threads:[~2011-01-19 19:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-13 21:58 Missing and out-of-date information in guile.1, the Guile man page Mark Harig
2011-01-15 20:48 ` Neil Jerram
2011-01-16 19:38   ` Mark Harig
2011-01-19 19:50     ` Ken Raeburn [this message]
2011-01-20  2:31       ` Mark Harig
2011-01-24 21:07       ` Andy Wingo
2011-01-16 23:23   ` Mark Harig
2011-01-24 21:54     ` Andy Wingo
2011-01-25  7:05       ` Mark Harig
2011-03-04  9:35         ` Andy Wingo
     [not found]           ` <8CDA8E5BB95D253-584-D4A3@webmail-m087.sysops.aol.com>
2011-03-05 19:29             ` Andy Wingo
2011-01-24 21:06 ` Andy Wingo
2011-01-24 23:05   ` Mark Harig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D05815A-48F6-43E8-8A9D-5415972D032F@raeburn.org \
    --to=raeburn@raeburn.org \
    --cc=bug-guile@gnu.org \
    --cc=idirectscm@aim.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).