From: Mark Harig <idirectscm@aim.com>
To: lispor@163.com, bug-guile@gnu.org
Subject: Re: Can not work with libguile-2.0
Date: Thu, 17 Feb 2011 13:04:08 -0500 [thread overview]
Message-ID: <8CD9CE4351809AD-235C-1D613@Webmail-m118.sysops.aol.com> (raw)
In-Reply-To: <1e640654.925f.12e338022b5.Coremail.lispor@163.com>
>
> In manual section 2.3(Linking Guile into Programs)
>
> I follow the example,run it and have something wrong:
> ---->cut here<----
> $ gcc -o simple-guile simple-guile.c `pkg-config --cflags --libs
guile-2.0`
> $ ./simple-guile
> ./simple-guile: error while loading shared libraries:
libguile-2.0.so.22: cannot
> open shared object file: No such file or directory
> ---->cut here<----
Agreed. The solution to the problem above, for now, is to set the
value of the environment variable LD_LIBRARY_PATH so that the linker
can find libguile-2.0.so.22:
$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
$ guile
...
The value that you set LD_LIBRARY_PATH depends on where you installed
Guile. You should adjust the value accordingly, depending on where
libguile-2.0.so.22 is located in your file system.
This problem has been reported. See the following messages:
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00022.html
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00036.html
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00038.html
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00077.html
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00076.html
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00079.html
--
next prev parent reply other threads:[~2011-02-17 18:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-17 12:02 Can not work with libguile-2.0 Fu-Gangqiang
2011-02-17 13:02 ` Hans Aberg
2011-02-17 13:40 ` Fu-Gangqiang
2011-02-17 18:04 ` Mark Harig [this message]
2011-02-17 18:23 ` Mark Harig
2011-02-18 8:41 ` Andy Wingo
2011-02-17 19:08 ` Mark Harig
2011-02-18 8:53 ` Andy Wingo
2011-02-18 19:42 ` Mark Harig
2011-02-20 10:13 ` Andy Wingo
2011-02-18 1:39 ` Fu-Gangqiang
2011-02-18 8:34 ` Andy Wingo
2011-02-19 15:30 ` linking with libguile-2.0, rpath Bruno Haible
2011-02-20 10:58 ` Andy Wingo
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=8CD9CE4351809AD-235C-1D613@Webmail-m118.sysops.aol.com \
--to=idirectscm@aim.com \
--cc=bug-guile@gnu.org \
--cc=lispor@163.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).