[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 " ">
|
---|
[480c503e] | 9 | <!ENTITY guile-md5sum "375f8a423a23d229552512113aa4a954">
|
---|
[dee8484] | 10 | <!ENTITY guile-size "5.5 MB">
|
---|
[480c503e] | 11 | <!ENTITY guile-buildsize "184 MB (add 4 MB for tests)">
|
---|
| 12 | <!ENTITY guile-time "4.5 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 |
|
---|
[09ddf35a] | 34 | &lfs122_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 -->
|
---|
[480c503e] | 111 | <!-- All tests pass for 3.0.10 on a x86_64. Did not check on i686.
|
---|
| 112 | -bdubbs -->
|
---|
[40d6bab] | 113 |
|
---|
[e1030e21] | 114 | <para>
|
---|
| 115 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 116 | </para>
|
---|
[12180381] | 117 |
|
---|
[0ee2aa3] | 118 | <screen role="root"><userinput>make install &&
|
---|
| 119 | make install-html &&
|
---|
| 120 |
|
---|
[db7e804] | 121 | mkdir -p /usr/share/gdb/auto-load/usr/lib &&
|
---|
[a1446bf] | 122 | mv /usr/lib/libguile-*-gdb.scm /usr/share/gdb/auto-load/usr/lib &&
|
---|
[0ee2aa3] | 123 | mv /usr/share/doc/guile-&guile-version;/{guile.html,ref} &&
|
---|
| 124 | mv /usr/share/doc/guile-&guile-version;/r5rs{.html,} &&
|
---|
[0461254] | 125 |
|
---|
[a1446bf] | 126 | find examples -name "Makefile*" -delete &&
|
---|
[0ee2aa3] | 127 | cp -vR examples /usr/share/doc/guile-&guile-version; &&
|
---|
[dcd55b37] | 128 |
|
---|
[ec7940be] | 129 | for DIRNAME in r5rs ref; do
|
---|
[4890200] | 130 | install -v -m644 doc/${DIRNAME}/*.txt \
|
---|
| 131 | /usr/share/doc/guile-&guile-version;/${DIRNAME}
|
---|
[0ee2aa3] | 132 | done &&
|
---|
| 133 | unset DIRNAME</userinput></screen>
|
---|
[d5595a31] | 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="commands">
|
---|
| 138 | <title>Command Explanations</title>
|
---|
| 139 |
|
---|
| 140 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 141 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 142 |
|
---|
[dbede5d0] | 143 | </sect2>
|
---|
[dcd55b37] | 144 |
|
---|
[12180381] | 145 | <sect2 role="content">
|
---|
| 146 | <title>Contents</title>
|
---|
| 147 |
|
---|
| 148 | <segmentedlist>
|
---|
| 149 | <segtitle>Installed Programs</segtitle>
|
---|
| 150 | <segtitle>Installed Libraries</segtitle>
|
---|
| 151 | <segtitle>Installed Directories</segtitle>
|
---|
| 152 |
|
---|
| 153 | <seglistitem>
|
---|
[b24bfef] | 154 | <seg>
|
---|
| 155 | guild, guile, guile-config, guile-snarf and guile-tools
|
---|
| 156 | </seg>
|
---|
| 157 | <seg>
|
---|
[db7e804] | 158 | libguile-3.0.so and guile-readline.so
|
---|
[b24bfef] | 159 | </seg>
|
---|
| 160 | <seg>
|
---|
| 161 | /usr/include/guile,
|
---|
[4890200] | 162 | /usr/lib/guile,
|
---|
| 163 | /usr/share/doc/guile-&guile-version; and
|
---|
[b24bfef] | 164 | /usr/share/guile
|
---|
| 165 | </seg>
|
---|
[12180381] | 166 | </seglistitem>
|
---|
| 167 | </segmentedlist>
|
---|
| 168 |
|
---|
| 169 | <variablelist>
|
---|
| 170 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 171 | <?dbfo list-presentation="list"?>
|
---|
| 172 | <?dbhtml list-presentation="table"?>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="guile-prog">
|
---|
| 175 | <term><command>guile</command></term>
|
---|
| 176 | <listitem>
|
---|
[e1030e21] | 177 | <para>
|
---|
| 178 | is a stand-alone Scheme interpreter for
|
---|
[4c24eb0a] | 179 | <application>Guile</application>
|
---|
[e1030e21] | 180 | </para>
|
---|
[12180381] | 181 | <indexterm zone="guile guile-prog">
|
---|
| 182 | <primary sortas="b-guile">guile</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
| 187 | <varlistentry id="guile-config">
|
---|
| 188 | <term><command>guile-config</command></term>
|
---|
| 189 | <listitem>
|
---|
[e1030e21] | 190 | <para>
|
---|
| 191 | is a <application>Guile</application> script which provides the
|
---|
| 192 | information necessary to link your programs against the
|
---|
| 193 | <application>Guile</application> library, in much the same way
|
---|
[4c24eb0a] | 194 | PkgConfig does
|
---|
[e1030e21] | 195 | </para>
|
---|
[12180381] | 196 | <indexterm zone="guile guile-config">
|
---|
| 197 | <primary sortas="b-guile-config">guile-config</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 |
|
---|
| 202 | <varlistentry id="guile-snarf">
|
---|
| 203 | <term><command>guile-snarf</command></term>
|
---|
| 204 | <listitem>
|
---|
[e1030e21] | 205 | <para>
|
---|
| 206 | is a script to parse declarations in your
|
---|
| 207 | <application>C</application> code for
|
---|
| 208 | <application>Scheme</application> visible
|
---|
[4c24eb0a] | 209 | <application>C</application> functions
|
---|
[e1030e21] | 210 | </para>
|
---|
[12180381] | 211 | <indexterm zone="guile guile-snarf">
|
---|
| 212 | <primary sortas="b-guile-snarf">guile-snarf</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
[e1030e21] | 217 | <varlistentry id="guild">
|
---|
| 218 | <term><command>guild</command></term>
|
---|
| 219 | <listitem>
|
---|
| 220 | <para>
|
---|
[601a838] | 221 | is a wrapper program installed along with <command>guile</command>,
|
---|
[e1030e21] | 222 | which knows where a particular module is installed and calls it,
|
---|
[4c24eb0a] | 223 | passing its arguments to the program
|
---|
[e1030e21] | 224 | </para>
|
---|
| 225 | <indexterm zone="guile guild">
|
---|
| 226 | <primary sortas="b-guild">guild</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
[12180381] | 231 | <varlistentry id="guile-tools">
|
---|
| 232 | <term><command>guile-tools</command></term>
|
---|
| 233 | <listitem>
|
---|
[e1030e21] | 234 | <para>
|
---|
[4c24eb0a] | 235 | is a symlink to <command>guild</command>
|
---|
[e1030e21] | 236 | </para>
|
---|
[12180381] | 237 | <indexterm zone="guile guile-tools">
|
---|
| 238 | <primary sortas="b-guile-tools">guile-tools</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
[b24bfef] | 242 |
|
---|
[12180381] | 243 | </variablelist>
|
---|
[b24bfef] | 244 |
|
---|
[12180381] | 245 | </sect2>
|
---|
[b24bfef] | 246 |
|
---|
[61a7ee8] | 247 | </sect1>
|
---|