[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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">
|
---|
[e1e58be] | 8 | <!ENTITY guile-download-ftp " ">
|
---|
[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 |
|
---|
[99c90fa] | 34 | &lfs121_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 |
|
---|
[12180381] | 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of Guile</title>
|
---|
| 88 |
|
---|
[e1030e21] | 89 | <para>
|
---|
| 90 | Install <application>Guile</application> by running the following
|
---|
| 91 | commands:
|
---|
| 92 | </para>
|
---|
[a367fbc] | 93 |
|
---|
[92245989] | 94 | <screen><userinput>./configure --prefix=/usr \
|
---|
[0ee2aa3] | 95 | --disable-static \
|
---|
| 96 | --docdir=/usr/share/doc/guile-&guile-version; &&
|
---|
[4890200] | 97 | make &&
|
---|
[e1030e21] | 98 | make html &&
|
---|
[a367fbc] | 99 |
|
---|
[4890200] | 100 | makeinfo --plaintext -o doc/r5rs/r5rs.txt doc/r5rs/r5rs.texi &&
|
---|
| 101 | makeinfo --plaintext -o doc/ref/guile.txt doc/ref/guile.texi</userinput></screen>
|
---|
[12180381] | 102 |
|
---|
[e1030e21] | 103 | <para>
|
---|
[47888b9] | 104 | To test the results, issue: <command>./check-guile</command>.
|
---|
[5f26bc36] | 105 | On an i686 system, as many as 10 tests will fail in the
|
---|
| 106 | <filename>numbers.test</filename> test suite due to minor floating-point
|
---|
| 107 | rounding errors.
|
---|
[e1030e21] | 108 | </para>
|
---|
[6aa4b2e8] | 109 | <!-- 10 of the numbers tests fail on i686. This should probably be looked
|
---|
| 110 | into at a later point in time. -renodr -->
|
---|
[40d6bab] | 111 |
|
---|
[e1030e21] | 112 | <para>
|
---|
| 113 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 114 | </para>
|
---|
[12180381] | 115 |
|
---|
[0ee2aa3] | 116 | <screen role="root"><userinput>make install &&
|
---|
| 117 | make install-html &&
|
---|
| 118 |
|
---|
[db7e804] | 119 | mkdir -p /usr/share/gdb/auto-load/usr/lib &&
|
---|
[a1446bf] | 120 | mv /usr/lib/libguile-*-gdb.scm /usr/share/gdb/auto-load/usr/lib &&
|
---|
[0ee2aa3] | 121 | mv /usr/share/doc/guile-&guile-version;/{guile.html,ref} &&
|
---|
| 122 | mv /usr/share/doc/guile-&guile-version;/r5rs{.html,} &&
|
---|
[0461254] | 123 |
|
---|
[a1446bf] | 124 | find examples -name "Makefile*" -delete &&
|
---|
[0ee2aa3] | 125 | cp -vR examples /usr/share/doc/guile-&guile-version; &&
|
---|
[dcd55b37] | 126 |
|
---|
[ec7940be] | 127 | for DIRNAME in r5rs ref; do
|
---|
[4890200] | 128 | install -v -m644 doc/${DIRNAME}/*.txt \
|
---|
| 129 | /usr/share/doc/guile-&guile-version;/${DIRNAME}
|
---|
[0ee2aa3] | 130 | done &&
|
---|
| 131 | unset DIRNAME</userinput></screen>
|
---|
[d5595a31] | 132 |
|
---|
| 133 | </sect2>
|
---|
| 134 |
|
---|
| 135 | <sect2 role="commands">
|
---|
| 136 | <title>Command Explanations</title>
|
---|
| 137 |
|
---|
| 138 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 139 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 140 |
|
---|
[dbede5d0] | 141 | </sect2>
|
---|
[dcd55b37] | 142 |
|
---|
[12180381] | 143 | <sect2 role="content">
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
| 147 | <segtitle>Installed Programs</segtitle>
|
---|
| 148 | <segtitle>Installed Libraries</segtitle>
|
---|
| 149 | <segtitle>Installed Directories</segtitle>
|
---|
| 150 |
|
---|
| 151 | <seglistitem>
|
---|
[b24bfef] | 152 | <seg>
|
---|
| 153 | guild, guile, guile-config, guile-snarf and guile-tools
|
---|
| 154 | </seg>
|
---|
| 155 | <seg>
|
---|
[db7e804] | 156 | libguile-3.0.so and guile-readline.so
|
---|
[b24bfef] | 157 | </seg>
|
---|
| 158 | <seg>
|
---|
| 159 | /usr/include/guile,
|
---|
[4890200] | 160 | /usr/lib/guile,
|
---|
| 161 | /usr/share/doc/guile-&guile-version; and
|
---|
[b24bfef] | 162 | /usr/share/guile
|
---|
| 163 | </seg>
|
---|
[12180381] | 164 | </seglistitem>
|
---|
| 165 | </segmentedlist>
|
---|
| 166 |
|
---|
| 167 | <variablelist>
|
---|
| 168 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 169 | <?dbfo list-presentation="list"?>
|
---|
| 170 | <?dbhtml list-presentation="table"?>
|
---|
| 171 |
|
---|
| 172 | <varlistentry id="guile-prog">
|
---|
| 173 | <term><command>guile</command></term>
|
---|
| 174 | <listitem>
|
---|
[e1030e21] | 175 | <para>
|
---|
| 176 | is a stand-alone Scheme interpreter for
|
---|
[4c24eb0a] | 177 | <application>Guile</application>
|
---|
[e1030e21] | 178 | </para>
|
---|
[12180381] | 179 | <indexterm zone="guile guile-prog">
|
---|
| 180 | <primary sortas="b-guile">guile</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
| 185 | <varlistentry id="guile-config">
|
---|
| 186 | <term><command>guile-config</command></term>
|
---|
| 187 | <listitem>
|
---|
[e1030e21] | 188 | <para>
|
---|
| 189 | is a <application>Guile</application> script which provides the
|
---|
| 190 | information necessary to link your programs against the
|
---|
| 191 | <application>Guile</application> library, in much the same way
|
---|
[4c24eb0a] | 192 | PkgConfig does
|
---|
[e1030e21] | 193 | </para>
|
---|
[12180381] | 194 | <indexterm zone="guile guile-config">
|
---|
| 195 | <primary sortas="b-guile-config">guile-config</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
| 199 |
|
---|
| 200 | <varlistentry id="guile-snarf">
|
---|
| 201 | <term><command>guile-snarf</command></term>
|
---|
| 202 | <listitem>
|
---|
[e1030e21] | 203 | <para>
|
---|
| 204 | is a script to parse declarations in your
|
---|
| 205 | <application>C</application> code for
|
---|
| 206 | <application>Scheme</application> visible
|
---|
[4c24eb0a] | 207 | <application>C</application> functions
|
---|
[e1030e21] | 208 | </para>
|
---|
[12180381] | 209 | <indexterm zone="guile guile-snarf">
|
---|
| 210 | <primary sortas="b-guile-snarf">guile-snarf</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
[e1030e21] | 215 | <varlistentry id="guild">
|
---|
| 216 | <term><command>guild</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>
|
---|
[601a838] | 219 | is a wrapper program installed along with <command>guile</command>,
|
---|
[e1030e21] | 220 | which knows where a particular module is installed and calls it,
|
---|
[4c24eb0a] | 221 | passing its arguments to the program
|
---|
[e1030e21] | 222 | </para>
|
---|
| 223 | <indexterm zone="guile guild">
|
---|
| 224 | <primary sortas="b-guild">guild</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
| 228 |
|
---|
[12180381] | 229 | <varlistentry id="guile-tools">
|
---|
| 230 | <term><command>guile-tools</command></term>
|
---|
| 231 | <listitem>
|
---|
[e1030e21] | 232 | <para>
|
---|
[4c24eb0a] | 233 | is a symlink to <command>guild</command>
|
---|
[e1030e21] | 234 | </para>
|
---|
[12180381] | 235 | <indexterm zone="guile guile-tools">
|
---|
| 236 | <primary sortas="b-guile-tools">guile-tools</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
[b24bfef] | 240 |
|
---|
[12180381] | 241 | </variablelist>
|
---|
[b24bfef] | 242 |
|
---|
[12180381] | 243 | </sect2>
|
---|
[b24bfef] | 244 |
|
---|
[61a7ee8] | 245 | </sect1>
|
---|