[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 |
|
---|
[12180381] | 7 | <!ENTITY guile-download-http "http://ftp.gnu.org/pub/gnu/guile/guile-&guile-version;.tar.gz">
|
---|
[60a3d169] | 8 | <!ENTITY guile-download-ftp "ftp://ftp.gnu.org/pub/gnu/guile/guile-&guile-version;.tar.gz">
|
---|
[dcd55b37] | 9 | <!ENTITY guile-md5sum "a4b64a992deae0532f8015bcc6c40784">
|
---|
| 10 | <!ENTITY guile-size "3.7 MB">
|
---|
| 11 | <!ENTITY guile-buildsize "49 MB (additional 40 MB to install all the docs)">
|
---|
| 12 | <!ENTITY guile-time "1.2 SBU (includes building all documentation)">
|
---|
[61a7ee8] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="guile" xreflabel="Guile-&guile-version;">
|
---|
| 16 | <?dbhtml filename="guile.html"?>
|
---|
[12180381] | 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Guile-&guile-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="guile">
|
---|
| 26 | <primary sortas="a-Guile">Guile</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Guile</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>Guile</application> package contains the Project
|
---|
[60a3d169] | 33 | GNU's extension language library. <application>Guile</application> also
|
---|
| 34 | contains a stand alone <application>Scheme</application> interpreter.</para>
|
---|
[12180381] | 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&guile-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&guile-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &guile-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &guile-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &guile-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &guile-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
[dcd55b37] | 58 | <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[8784b61f] | 59 | <itemizedlist spacing="compact">
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Required patch: <ulink
|
---|
| 62 | url="&patch-root;/guile-&guile-version;-gcc4-1.patch"/></para>
|
---|
| 63 | </listitem>
|
---|
[eef5b7e9] | 64 | <listitem>
|
---|
| 65 | <para>Required patch: <ulink
|
---|
[0045775] | 66 | url="&patch-root;/guile-&guile-version;-slib-1.patch"/></para>
|
---|
[eef5b7e9] | 67 | </listitem>
|
---|
[dcd55b37] | 68 | </itemizedlist> -->
|
---|
[8784b61f] | 69 |
|
---|
[60a3d169] | 70 | <bridgehead renderas="sect3">Guile Dependencies</bridgehead>
|
---|
[6473e74] | 71 |
|
---|
[11dbeb1e] | 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required"><xref linkend="gmp"/></para>
|
---|
| 74 |
|
---|
[60a3d169] | 75 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[0045775] | 76 | <para role="required"><xref linkend="emacs"/></para>
|
---|
[60a3d169] | 77 |
|
---|
[1039de3] | 78 | <para condition="html" role="usernotes">User Notes:
|
---|
| 79 | <ulink url="&blfs-wiki;/guile"/></para>
|
---|
| 80 |
|
---|
[12180381] | 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of Guile</title>
|
---|
| 85 |
|
---|
| 86 | <para>Install <application>Guile</application> by running the following
|
---|
| 87 | commands:</para>
|
---|
| 88 |
|
---|
[dcd55b37] | 89 | <screen><userinput>sed -i -e '20,$ d' \
|
---|
| 90 | -e 's|slib)|&)\n(load-from-path "slib/guile.init")|' \
|
---|
| 91 | ice-9/slib.scm
|
---|
| 92 |
|
---|
| 93 | ./configure --prefix=/usr &&
|
---|
[12180381] | 94 | make</userinput></screen>
|
---|
| 95 |
|
---|
[dcd55b37] | 96 | <para>If you have <xref linkend="tetex"/> installed and wish to
|
---|
[60a3d169] | 97 | build alternate formats of the documentation, issue the following
|
---|
| 98 | commands:</para>
|
---|
| 99 |
|
---|
| 100 | <screen><userinput>for DIRNAME in goops r5rs ref tutorial
|
---|
| 101 | do
|
---|
| 102 | make -k -C doc/$DIRNAME pdf ps html
|
---|
| 103 | done &&
|
---|
[dcd55b37] | 104 |
|
---|
[60a3d169] | 105 | makeinfo --plaintext -o doc/goops/goops.txt doc/goops/goops.texi &&
|
---|
| 106 | makeinfo --plaintext -o doc/r5rs/r5rs.txt doc/r5rs/r5rs.texi &&
|
---|
| 107 | makeinfo --plaintext -o doc/ref/guile.txt doc/ref/guile.texi &&
|
---|
| 108 | makeinfo --plaintext -o doc/tutorial/guile-tut.txt \
|
---|
| 109 | doc/tutorial/guile-tut.texi &&
|
---|
[dcd55b37] | 110 |
|
---|
[60a3d169] | 111 | unset DIRNAME</userinput></screen>
|
---|
| 112 |
|
---|
[40d6bab] | 113 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 114 |
|
---|
[12180381] | 115 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 116 |
|
---|
[60a3d169] | 117 | <screen role="root"><userinput>make install &&
|
---|
[dcd55b37] | 118 |
|
---|
[60a3d169] | 119 | find examples -name "Makefile*" -exec rm {} \; &&
|
---|
| 120 | install -v -m755 -d /usr/share/doc/guile-&guile-version; &&
|
---|
[dcd55b37] | 121 | cp -v -R examples /usr/share/doc/guile-&guile-version;</userinput></screen>
|
---|
[60a3d169] | 122 |
|
---|
[dcd55b37] | 123 | <para>If you built the alternate formats of the documentation, install them
|
---|
[60a3d169] | 124 | using the following commands issued by the
|
---|
| 125 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 126 |
|
---|
| 127 | <screen role="root"><userinput>for DIRNAME in goops r5rs ref tutorial
|
---|
| 128 | do
|
---|
| 129 | install -v -m755 -d /usr/share/doc/guile-&guile-version;/$DIRNAME/html
|
---|
| 130 | install -v -m644 doc/$DIRNAME/*.{pdf,ps,dvi,txt} \
|
---|
| 131 | /usr/share/doc/guile-&guile-version;/$DIRNAME
|
---|
| 132 | if [ -d doc/$DIRNAME/$DIRNAME.html ]; then
|
---|
| 133 | install -v -m644 doc/$DIRNAME/$DIRNAME.html/* \
|
---|
| 134 | /usr/share/doc/guile-&guile-version;/$DIRNAME/html
|
---|
| 135 | fi
|
---|
| 136 | done &&
|
---|
| 137 |
|
---|
| 138 | install -v -m644 doc/goops/hierarchy.{eps,png} \
|
---|
| 139 | /usr/share/doc/guile-&guile-version;/goops &&
|
---|
| 140 | install -v -m644 doc/ref/guile.html/* \
|
---|
| 141 | /usr/share/doc/guile-&guile-version;/ref/html &&
|
---|
| 142 | install -v -m644 doc/tutorial/guile-tut.html/* \
|
---|
| 143 | /usr/share/doc/guile-&guile-version;/tutorial/html</userinput></screen>
|
---|
[12180381] | 144 | </sect2>
|
---|
| 145 |
|
---|
[dcd55b37] | 146 | <sect2 role="commands">
|
---|
| 147 | <title>Command Explanations</title>
|
---|
| 148 |
|
---|
| 149 | <para><command>sed -i -e '20,$ d' -e '...' ice-9/slib.scm</command>:
|
---|
| 150 | This command is used to modify the <application>Guile</application>
|
---|
| 151 | <application>SLIB</application> initialization script. There are
|
---|
| 152 | incompatibilities with newer versions of <application>SLIB</application>
|
---|
| 153 | and this command modifes the script to use the installed
|
---|
| 154 | <application>SLIB</application> script.</para>
|
---|
| 155 |
|
---|
| 156 | </sect2>
|
---|
| 157 |
|
---|
[12180381] | 158 | <sect2 role="content">
|
---|
| 159 | <title>Contents</title>
|
---|
| 160 |
|
---|
| 161 | <segmentedlist>
|
---|
| 162 | <segtitle>Installed Programs</segtitle>
|
---|
| 163 | <segtitle>Installed Libraries</segtitle>
|
---|
| 164 | <segtitle>Installed Directories</segtitle>
|
---|
| 165 |
|
---|
| 166 | <seglistitem>
|
---|
| 167 | <seg>guile, guile-config, guile-snarf, and guile-tools</seg>
|
---|
[dcd55b37] | 168 | <seg>libguile.{so,a}, libguile-srfi-srfi-*.{so,a} and
|
---|
| 169 | /libguilereadline-v-17.{so,a}</seg>
|
---|
[11dbeb1e] | 170 | <seg>/usr/include/guile, /usr/include/libguile,
|
---|
| 171 | /usr/share/doc/guile-&guile-version; and /usr/share/guile</seg>
|
---|
[12180381] | 172 | </seglistitem>
|
---|
| 173 | </segmentedlist>
|
---|
| 174 |
|
---|
| 175 | <variablelist>
|
---|
| 176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 177 | <?dbfo list-presentation="list"?>
|
---|
| 178 | <?dbhtml list-presentation="table"?>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="guile-prog">
|
---|
| 181 | <term><command>guile</command></term>
|
---|
| 182 | <listitem>
|
---|
[7cd76d62] | 183 | <para>is a stand-alone Scheme interpreter for
|
---|
[12180381] | 184 | <application>Guile</application>.</para>
|
---|
| 185 | <indexterm zone="guile guile-prog">
|
---|
| 186 | <primary sortas="b-guile">guile</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 |
|
---|
| 191 | <varlistentry id="guile-config">
|
---|
| 192 | <term><command>guile-config</command></term>
|
---|
| 193 | <listitem>
|
---|
[7cd76d62] | 194 | <para>is a <application>Guile</application> script which provides
|
---|
| 195 | the information necessary to link your programs against the
|
---|
| 196 | <application>Guile</application> library, in much the same way
|
---|
[12180381] | 197 | <xref linkend="pkgconfig"></xref> does.</para>
|
---|
| 198 | <indexterm zone="guile guile-config">
|
---|
| 199 | <primary sortas="b-guile-config">guile-config</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="guile-snarf">
|
---|
| 205 | <term><command>guile-snarf</command></term>
|
---|
| 206 | <listitem>
|
---|
[7cd76d62] | 207 | <para>is a script to parse declarations in your
|
---|
[0619e6d] | 208 | <application>C</application> code for <application>Scheme</application>
|
---|
[12180381] | 209 | visible <application>C</application> functions, i
|
---|
[7cd76d62] | 210 | <application>Scheme</application> objects to be used by
|
---|
[12180381] | 211 | <application>C</application> code, etc.</para>
|
---|
| 212 | <indexterm zone="guile guile-snarf">
|
---|
| 213 | <primary sortas="b-guile-snarf">guile-snarf</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
| 218 | <varlistentry id="guile-tools">
|
---|
| 219 | <term><command>guile-tools</command></term>
|
---|
| 220 | <listitem>
|
---|
[7cd76d62] | 221 | <para>is a wrapper program installed along with
|
---|
| 222 | <command>guile</command> which knows where a particular
|
---|
[12180381] | 223 | module is installed and calls it passing its args to a program.</para>
|
---|
| 224 | <indexterm zone="guile guile-tools">
|
---|
| 225 | <primary sortas="b-guile-tools">guile-tools</primary>
|
---|
| 226 | </indexterm>
|
---|
| 227 | </listitem>
|
---|
| 228 | </varlistentry>
|
---|
| 229 |
|
---|
| 230 | </variablelist>
|
---|
| 231 |
|
---|
| 232 | </sect2>
|
---|
[61a7ee8] | 233 |
|
---|
| 234 | </sect1>
|
---|