2 @c This is part of the GNU Guile Reference Manual.
3 @c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2007
4 @c Free Software Foundation, Inc.
5 @c See the file guile.texi for copying conditions.
11 SLIB is a portable library of Scheme packages which can be used with
12 Guile and other Scheme implementations. SLIB is not included in the
13 Guile distribution, but can be installed separately (@pxref{SLIB
14 installation}). It is available from
15 @url{http://people.csail.mit.edu/jaffer/SLIB.html}.
17 After SLIB is installed, the following Scheme expression must be
18 executed before the SLIB facilities can be used:
21 (use-modules (ice-9 slib))
26 @code{require} can then be used in the usual way (@pxref{Require,,,
27 slib, The SLIB Manual}). For example,
30 (use-modules (ice-9 slib))
36 A few Guile core functions are overridden by the SLIB setups; for
37 example the SLIB version of @code{delete-file} returns a boolean
38 indicating success or failure, whereas the Guile core version throws
39 an error for failure. In general (and as might be expected) when SLIB
40 is loaded it's the SLIB specifications that are followed.
47 @node SLIB installation
48 @subsection SLIB installation
50 The following procedure works, e.g., with SLIB version 3a3
51 (@pxref{Installation, SLIB installation,, slib, The SLIB Portable Scheme
56 Unpack SLIB and install it using @code{make install} from its directory.
57 By default, this will install SLIB in @file{/usr/local/lib/slib/}.
58 Running @code{make install-info} installs its documentation, by default
59 under @file{/usr/local/info/}.
62 Define the @code{SCHEME_LIBRARY_PATH} environment variable:
65 $ SCHEME_LIBRARY_PATH=/usr/local/lib/slib/
66 $ export SCHEME_LIBRARY_PATH
69 Alternatively, you can create a symlink in the Guile directory to SLIB,
73 ln -s /usr/local/lib/slib /usr/local/share/guile/@value{EFFECTIVE-VERSION}/slib
77 Use Guile to create the catalog file, e.g.,:
81 guile> (use-modules (ice-9 slib))
82 guile> (require 'new-catalog)
86 The catalog data should now be in
87 @file{/usr/local/share/guile/@value{EFFECTIVE-VERSION}/slibcat}.
89 If instead you get an error such as:
92 Unbound variable: scheme-implementation-type
95 then a solution is to get a newer version of Guile,
96 or to modify @file{ice-9/slib.scm} to use @code{define-public} for the
105 @cindex Jaffer, Aubrey
106 @cindex symbolic math
107 @cindex math -- symbolic
108 Jacal is a symbolic math package written in Scheme by Aubrey Jaffer.
109 It is usually installed as an extra package in SLIB.
111 You can use Guile's interface to SLIB to invoke Jacal:
114 (use-modules (ice-9 slib))
120 For complete documentation on Jacal, please read the Jacal manual. If
121 it has been installed on line, you can look at @ref{Top, , Jacal, jacal,
122 JACAL Symbolic Mathematics System}. Otherwise you can find it on the web at
123 @url{http://www-swiss.ai.mit.edu/~jaffer/JACAL.html}
127 @c TeX-master: "guile.texi"