unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* SLIB and ice-9 slib module
@ 2008-03-18 23:30 Sebastian Tennant
  2008-03-27  8:26 ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Tennant @ 2008-03-18 23:30 UTC (permalink / raw)
  To: guile-user

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





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

end of thread, other threads:[~2008-03-30 17:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-18 23:30 SLIB and ice-9 slib module Sebastian Tennant
2008-03-27  8:26 ` 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

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).