[61a7ee8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[61a7ee8] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY guile-download-http "&gnu-http;/guile/guile-&guile-version;.tar.xz">
|
---|
| 8 | <!ENTITY guile-download-ftp "&gnu-ftp;/guile/guile-&guile-version;.tar.xz">
|
---|
[dee8484] | 9 | <!ENTITY guile-md5sum "258983e0156c2bc66539dcbcb96f2bd2">
|
---|
| 10 | <!ENTITY guile-size "5.5 MB">
|
---|
| 11 | <!ENTITY guile-buildsize "221 MB (add 4 MB for tests)">
|
---|
| 12 | <!ENTITY guile-time "5.9 SBU (Using parallelism=4; add 0.3 SBU for tests)">
|
---|
[61a7ee8] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="guile" xreflabel="Guile-&guile-version;">
|
---|
| 16 | <?dbhtml filename="guile.html"?>
|
---|
[12180381] | 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Guile-&guile-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="guile">
|
---|
| 22 | <primary sortas="a-Guile">Guile</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Guile</title>
|
---|
| 27 |
|
---|
[e1030e21] | 28 | <para>
|
---|
[b340892] | 29 | The <application>Guile</application> package contains the GNU Project's
|
---|
| 30 | extension language library. <application>Guile</application> also
|
---|
[e1030e21] | 31 | contains a stand alone <application>Scheme</application> interpreter.
|
---|
| 32 | </para>
|
---|
[12180381] | 33 |
|
---|
[d0c42be] | 34 | &lfs113_checked;
|
---|
[8f437ed] | 35 |
|
---|
[12180381] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[e1030e21] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&guile-download-http;"/>
|
---|
| 41 | </para>
|
---|
[12180381] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[e1030e21] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&guile-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[12180381] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[e1030e21] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &guile-md5sum;
|
---|
| 51 | </para>
|
---|
[12180381] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[e1030e21] | 54 | <para>
|
---|
| 55 | Download size: &guile-size;
|
---|
| 56 | </para>
|
---|
[12180381] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[e1030e21] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &guile-buildsize;
|
---|
| 61 | </para>
|
---|
[12180381] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[e1030e21] | 64 | <para>
|
---|
| 65 | Estimated build time: &guile-time;
|
---|
| 66 | </para>
|
---|
[12180381] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
[e1030e21] | 69 |
|
---|
[60a3d169] | 70 | <bridgehead renderas="sect3">Guile Dependencies</bridgehead>
|
---|
[6473e74] | 71 |
|
---|
[dbede5d0] | 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[6025fa54] | 73 | <para role="required">
|
---|
[60ddbaf] | 74 | <xref linkend="gc"/> and
|
---|
[6025fa54] | 75 | <xref linkend="libunistring"/>
|
---|
| 76 | </para>
|
---|
[11dbeb1e] | 77 |
|
---|
[60a3d169] | 78 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[dbede5d0] | 79 | <para role="optional">
|
---|
[6d62ba8] | 80 | <xref linkend="emacs"/> and
|
---|
[c77f4066] | 81 | <xref linkend="gdb"/> (run-time only dependencies).
|
---|
[dbede5d0] | 82 | </para>
|
---|
[60a3d169] | 83 |
|
---|
[e1030e21] | 84 | <para condition="html" role="usernotes">
|
---|
| 85 | User Notes: <ulink url="&blfs-wiki;/guile"/>
|
---|
| 86 | </para>
|
---|
[12180381] | 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 role="installation">
|
---|
| 90 | <title>Installation of Guile</title>
|
---|
| 91 |
|
---|
[e1030e21] | 92 | <para>
|
---|
| 93 | Install <application>Guile</application> by running the following
|
---|
| 94 | commands:
|
---|
| 95 | </para>
|
---|
[a367fbc] | 96 |
|
---|
[92245989] | 97 | <screen><userinput>./configure --prefix=/usr \
|
---|
[0ee2aa3] | 98 | --disable-static \
|
---|
| 99 | --docdir=/usr/share/doc/guile-&guile-version; &&
|
---|
[4890200] | 100 | make &&
|
---|
[e1030e21] | 101 | make html &&
|
---|
[a367fbc] | 102 |
|
---|
[4890200] | 103 | makeinfo --plaintext -o doc/r5rs/r5rs.txt doc/r5rs/r5rs.texi &&
|
---|
| 104 | makeinfo --plaintext -o doc/ref/guile.txt doc/ref/guile.texi</userinput></screen>
|
---|
[12180381] | 105 |
|
---|
[e1030e21] | 106 | <para>
|
---|
[47888b9] | 107 | To test the results, issue: <command>./check-guile</command>.
|
---|
[5f26bc36] | 108 | On an i686 system, as many as 10 tests will fail in the
|
---|
| 109 | <filename>numbers.test</filename> test suite due to minor floating-point
|
---|
| 110 | rounding errors.
|
---|
[e1030e21] | 111 | </para>
|
---|
[6aa4b2e8] | 112 | <!-- 10 of the numbers tests fail on i686. This should probably be looked
|
---|
| 113 | into at a later point in time. -renodr -->
|
---|
[40d6bab] | 114 |
|
---|
[e1030e21] | 115 | <para>
|
---|
| 116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 117 | </para>
|
---|
[12180381] | 118 |
|
---|
[0ee2aa3] | 119 | <screen role="root"><userinput>make install &&
|
---|
| 120 | make install-html &&
|
---|
| 121 |
|
---|
[db7e804] | 122 | mkdir -p /usr/share/gdb/auto-load/usr/lib &&
|
---|
[a1446bf] | 123 | mv /usr/lib/libguile-*-gdb.scm /usr/share/gdb/auto-load/usr/lib &&
|
---|
[0ee2aa3] | 124 | mv /usr/share/doc/guile-&guile-version;/{guile.html,ref} &&
|
---|
| 125 | mv /usr/share/doc/guile-&guile-version;/r5rs{.html,} &&
|
---|
[0461254] | 126 |
|
---|
[a1446bf] | 127 | find examples -name "Makefile*" -delete &&
|
---|
[0ee2aa3] | 128 | cp -vR examples /usr/share/doc/guile-&guile-version; &&
|
---|
[dcd55b37] | 129 |
|
---|
[ec7940be] | 130 | for DIRNAME in r5rs ref; do
|
---|
[4890200] | 131 | install -v -m644 doc/${DIRNAME}/*.txt \
|
---|
| 132 | /usr/share/doc/guile-&guile-version;/${DIRNAME}
|
---|
[0ee2aa3] | 133 | done &&
|
---|
| 134 | unset DIRNAME</userinput></screen>
|
---|
[d5595a31] | 135 |
|
---|
| 136 | </sect2>
|
---|
| 137 |
|
---|
| 138 | <sect2 role="commands">
|
---|
| 139 | <title>Command Explanations</title>
|
---|
| 140 |
|
---|
| 141 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 142 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 143 |
|
---|
[dbede5d0] | 144 | </sect2>
|
---|
[dcd55b37] | 145 |
|
---|
[12180381] | 146 | <sect2 role="content">
|
---|
| 147 | <title>Contents</title>
|
---|
| 148 |
|
---|
| 149 | <segmentedlist>
|
---|
| 150 | <segtitle>Installed Programs</segtitle>
|
---|
| 151 | <segtitle>Installed Libraries</segtitle>
|
---|
| 152 | <segtitle>Installed Directories</segtitle>
|
---|
| 153 |
|
---|
| 154 | <seglistitem>
|
---|
[b24bfef] | 155 | <seg>
|
---|
| 156 | guild, guile, guile-config, guile-snarf and guile-tools
|
---|
| 157 | </seg>
|
---|
| 158 | <seg>
|
---|
[db7e804] | 159 | libguile-3.0.so and guile-readline.so
|
---|
[b24bfef] | 160 | </seg>
|
---|
| 161 | <seg>
|
---|
| 162 | /usr/include/guile,
|
---|
[4890200] | 163 | /usr/lib/guile,
|
---|
| 164 | /usr/share/doc/guile-&guile-version; and
|
---|
[b24bfef] | 165 | /usr/share/guile
|
---|
| 166 | </seg>
|
---|
[12180381] | 167 | </seglistitem>
|
---|
| 168 | </segmentedlist>
|
---|
| 169 |
|
---|
| 170 | <variablelist>
|
---|
| 171 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 172 | <?dbfo list-presentation="list"?>
|
---|
| 173 | <?dbhtml list-presentation="table"?>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="guile-prog">
|
---|
| 176 | <term><command>guile</command></term>
|
---|
| 177 | <listitem>
|
---|
[e1030e21] | 178 | <para>
|
---|
| 179 | is a stand-alone Scheme interpreter for
|
---|
[4c24eb0a] | 180 | <application>Guile</application>
|
---|
[e1030e21] | 181 | </para>
|
---|
[12180381] | 182 | <indexterm zone="guile guile-prog">
|
---|
| 183 | <primary sortas="b-guile">guile</primary>
|
---|
| 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
| 188 | <varlistentry id="guile-config">
|
---|
| 189 | <term><command>guile-config</command></term>
|
---|
| 190 | <listitem>
|
---|
[e1030e21] | 191 | <para>
|
---|
| 192 | is a <application>Guile</application> script which provides the
|
---|
| 193 | information necessary to link your programs against the
|
---|
| 194 | <application>Guile</application> library, in much the same way
|
---|
[4c24eb0a] | 195 | PkgConfig does
|
---|
[e1030e21] | 196 | </para>
|
---|
[12180381] | 197 | <indexterm zone="guile guile-config">
|
---|
| 198 | <primary sortas="b-guile-config">guile-config</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
| 203 | <varlistentry id="guile-snarf">
|
---|
| 204 | <term><command>guile-snarf</command></term>
|
---|
| 205 | <listitem>
|
---|
[e1030e21] | 206 | <para>
|
---|
| 207 | is a script to parse declarations in your
|
---|
| 208 | <application>C</application> code for
|
---|
| 209 | <application>Scheme</application> visible
|
---|
[4c24eb0a] | 210 | <application>C</application> functions
|
---|
[e1030e21] | 211 | </para>
|
---|
[12180381] | 212 | <indexterm zone="guile guile-snarf">
|
---|
| 213 | <primary sortas="b-guile-snarf">guile-snarf</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
[e1030e21] | 218 | <varlistentry id="guild">
|
---|
| 219 | <term><command>guild</command></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>
|
---|
[601a838] | 222 | is a wrapper program installed along with <command>guile</command>,
|
---|
[e1030e21] | 223 | which knows where a particular module is installed and calls it,
|
---|
[4c24eb0a] | 224 | passing its arguments to the program
|
---|
[e1030e21] | 225 | </para>
|
---|
| 226 | <indexterm zone="guile guild">
|
---|
| 227 | <primary sortas="b-guild">guild</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
[12180381] | 232 | <varlistentry id="guile-tools">
|
---|
| 233 | <term><command>guile-tools</command></term>
|
---|
| 234 | <listitem>
|
---|
[e1030e21] | 235 | <para>
|
---|
[4c24eb0a] | 236 | is a symlink to <command>guild</command>
|
---|
[e1030e21] | 237 | </para>
|
---|
[12180381] | 238 | <indexterm zone="guile guile-tools">
|
---|
| 239 | <primary sortas="b-guile-tools">guile-tools</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
[b24bfef] | 243 |
|
---|
[12180381] | 244 | </variablelist>
|
---|
[b24bfef] | 245 |
|
---|
[12180381] | 246 | </sect2>
|
---|
[b24bfef] | 247 |
|
---|
[61a7ee8] | 248 | </sect1>
|
---|