From: Sebastian Tennant <sebyte@smolny.plus.com>
To: guile-user@gnu.org
Subject: SLIB and ice-9 slib module
Date: Wed, 19 Mar 2008 01:30:51 +0200 [thread overview]
Message-ID: <87eja74nkk.fsf@moley.moleskin.org> (raw)
Hi all,
A Debian box with an apt-installed guile-1.8:
/usr/share/guile/1.8
An apt-installed slib:
/usr/share/slib
Created symlink:
/usr/share/guile/1.8/slib -> /usr/share/slib
Set environment variables:
export GUILE_IMPLEMENTATION_PATH="/usr/share/guile/1.8/"
export SCHEME_LIBRARY_PATH="/usr/share/slib/"
(also tried not setting SCHEME_LIBRARY_PATH, and setting it to
/usr/share/guile/1.8/slib)
but I get this every time:
guile> (use-modules (ice-9 slib))
ERROR: Unbound variable: slib:features
ABORT: (unbound-variable)
SLIB works fine with:
$ slib guile
or
$ guile -l /usr/share/slib/guile.init
Upon inspection, ice-9's documentation is wrong in saying:
2. Define the `SCHEME_LIBRARY_PATH' environment variable:
$ SCHEME_LIBRARY_PATH=/usr/local/lib/slib
$ export SCHEME_LIBRARY_PATH
-> Alternatively, you can create a symlink in the Guile directory to
SLIB, e.g.:
ln -s /usr/local/lib/slib /usr/local/share/guile/1.8/slib
because the function slib-parent-dir (upon which slib's 'vicinities' are
based) searches the %load-path and uses substring, in which case only a
symlink will do.
(define slib-parent-dir
(let* ((path (%search-load-path "slib/require.scm")))
(if path
(substring path 0 (- (string-length path) 17))
(error "Could not find slib/require.scm in " %load-path))))
Having said that, even with the symlink it still fails, so I give up.
Sebastian
next reply other threads:[~2008-03-18 23:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-18 23:30 Sebastian Tennant [this message]
2008-03-27 8:26 ` SLIB and ice-9 slib module Ludovic Courtès
2008-03-27 14:52 ` Sebastian Tennant
2008-03-30 16:06 ` Sebastian Tennant
2008-03-30 16:34 ` Ludovic Courtès
2008-03-30 17:54 ` Sebastian Tennant
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=87eja74nkk.fsf@moley.moleskin.org \
--to=sebyte@smolny.plus.com \
--cc=guile-user@gnu.org \
/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).