SLIB installation
The following procedure works, e.g., with SLIB version 3a3 (see SLIB installation in The SLIB Portable Scheme Library):
Unpack SLIB and install it using
make installfrom its directory. By default, this will install SLIB in/usr/local/lib/slib/. Runningmake install-infoinstalls its documentation, by default under/usr/local/info/.Define the
SCHEME_LIBRARY_PATHenvironment variable:bash$ SCHEME_LIBRARY_PATH=/usr/local/lib/slib/ $ export SCHEME_LIBRARY_PATHAlternatively, you can create a symlink in the Guile directory to SLIB, e.g.:
bashln -s /usr/local/lib/slib /usr/local/share/guile/3.0/slibUse Guile to create the catalog file, e.g.,:
lisp# guile guile> (use-modules (ice-9 slib)) guile> (require 'new-catalog) guile> (quit)The catalog data should now be in
/usr/local/share/guile/3.0/slibcat.If instead you get an error such as:
Unbound variable: scheme-implementation-typethen a solution is to get a newer version of Guile, or to modify
ice-9/slib.scmto usedefine-publicfor the offending variables.