slib usage problems.

Harvey J. Stein (hjstein@bfr.co.il)
05 Aug 1998 11:50:48 +0300

I tried to use slib with a fairly recent guile snapshot. I got:

hjstein@blinky:~$ guile
guile> (use-modules (ice-9 slib))
/usr/local/share/guile/1.3a/ice-9/slib.scm:145:9: In procedure error in expression (error "Could not find slib/require.scm in " %load-path):
/usr/local/share/guile/1.3a/ice-9/slib.scm:145:9: Could not find slib/require.scm in ("/usr/local/share/guile/site" "/usr/local/share/guile/1.3a" "/usr/local/share/guile" ".")
ABORT: (misc-error)

Type "(backtrace)" to get more information.
guile> (use-modules (ice-9 slib))
guile> (require 'sort)
ERROR: In expression (require (quote sort)):
ERROR: Unbound variable: require
ABORT: (misc-error)
guile>

On the other hand, if I push "/usr/lib" onto %load-path, it finds
slib & the sort package:

hjstein@blinky:~$ guile
guile> (set! %load-path (cons "/usr/lib" %load-path))
guile> (use-modules (ice-9 slib))
guile> (require 'sort)
guile>

So, 2 problems:

1. It looks like guile didn't configure properly when built to find
slib.
2. When a module load has crapped out, the module is still registered
as having been loaded.

Is the above a reasonable work-around? Or is it going to bite me
later? Is there a better work-around?

-- 
Harvey J. Stein
BFM Financial Research
hjstein@bfr.co.il