Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.
The following procedure works, e.g., with SLIB version 3a3 (see SLIB installation in The SLIB Portable Scheme Library):
make install
from its directory.
By default, this will install SLIB in /usr/local/lib/slib/.
Running make install-info
installs its documentation, by default
under /usr/local/info/.
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/2.2/slib
# guile guile> (use-modules (ice-9 slib)) guile> (require 'new-catalog) guile> (quit)
The catalog data should now be in /usr/local/share/guile/2.2/slibcat.
If instead you get an error such as:
Unbound variable: scheme-implementation-type
then a solution is to get a newer version of Guile,
or to modify ice-9/slib.scm to use define-public
for the
offending variables.