[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 |
|
---|
[b24bfef] | 7 | <!ENTITY guile-download-http "http://ftp.gnu.org/pub/gnu/guile/guile-&guile-version;.tar.xz">
|
---|
| 8 | <!ENTITY guile-download-ftp "ftp://ftp.gnu.org/pub/gnu/guile/guile-&guile-version;.tar.xz">
|
---|
[2fc9e1d] | 9 | <!ENTITY guile-md5sum "03f1bce1a4983076d955003472306a13">
|
---|
[6d62ba8] | 10 | <!ENTITY guile-size "4.5 MB">
|
---|
[2fc9e1d] | 11 | <!ENTITY guile-buildsize "109 MB (additional 4 MB for the tests)">
|
---|
| 12 | <!ENTITY guile-time "8.0 SBU (additional 0.7 SBU for the tests)">
|
---|
[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 |
|
---|
[e1030e21] | 32 | <para>
|
---|
| 33 | The <application>Guile</application> package contains the Project
|
---|
| 34 | GNU's extension language library. <application>Guile</application> also
|
---|
| 35 | contains a stand alone <application>Scheme</application> interpreter.
|
---|
| 36 | </para>
|
---|
[12180381] | 37 |
|
---|
[0c31f7b] | 38 | &lfs79_checked;
|
---|
[8f437ed] | 39 |
|
---|
[6d27308] | 40 | &gcc6_checked;
|
---|
| 41 |
|
---|
[12180381] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[e1030e21] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&guile-download-http;"/>
|
---|
| 47 | </para>
|
---|
[12180381] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[e1030e21] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&guile-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[12180381] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[e1030e21] | 55 | <para>
|
---|
| 56 | Download MD5 sum: &guile-md5sum;
|
---|
| 57 | </para>
|
---|
[12180381] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[e1030e21] | 60 | <para>
|
---|
| 61 | Download size: &guile-size;
|
---|
| 62 | </para>
|
---|
[12180381] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[e1030e21] | 65 | <para>
|
---|
| 66 | Estimated disk space required: &guile-buildsize;
|
---|
| 67 | </para>
|
---|
[12180381] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[e1030e21] | 70 | <para>
|
---|
| 71 | Estimated build time: &guile-time;
|
---|
| 72 | </para>
|
---|
[12180381] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
[e1030e21] | 75 |
|
---|
[60a3d169] | 76 | <bridgehead renderas="sect3">Guile Dependencies</bridgehead>
|
---|
[6473e74] | 77 |
|
---|
[dbede5d0] | 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[6025fa54] | 79 | <para role="required">
|
---|
[ba1be62] | 80 | <xref linkend="gc"/>,
|
---|
[4890200] | 81 | <xref linkend="libffi"/> and
|
---|
[6025fa54] | 82 | <xref linkend="libunistring"/>
|
---|
| 83 | </para>
|
---|
[11dbeb1e] | 84 |
|
---|
[60a3d169] | 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[dbede5d0] | 86 | <para role="optional">
|
---|
[6d62ba8] | 87 | <xref linkend="emacs"/> and
|
---|
[2037ec4] | 88 | <xref linkend="gdb"/> (run-time only dependencies).
|
---|
[dbede5d0] | 89 | </para>
|
---|
[60a3d169] | 90 |
|
---|
[e1030e21] | 91 | <para condition="html" role="usernotes">
|
---|
| 92 | User Notes: <ulink url="&blfs-wiki;/guile"/>
|
---|
| 93 | </para>
|
---|
[12180381] | 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="installation">
|
---|
| 97 | <title>Installation of Guile</title>
|
---|
| 98 |
|
---|
[e1030e21] | 99 | <para>
|
---|
| 100 | Install <application>Guile</application> by running the following
|
---|
| 101 | commands:
|
---|
| 102 | </para>
|
---|
[a367fbc] | 103 |
|
---|
[0ee2aa3] | 104 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 105 | --disable-static \
|
---|
| 106 | --docdir=/usr/share/doc/guile-&guile-version; &&
|
---|
[4890200] | 107 | make &&
|
---|
[e1030e21] | 108 | make html &&
|
---|
[a367fbc] | 109 |
|
---|
[4890200] | 110 | makeinfo --plaintext -o doc/r5rs/r5rs.txt doc/r5rs/r5rs.texi &&
|
---|
| 111 | makeinfo --plaintext -o doc/ref/guile.txt doc/ref/guile.texi</userinput></screen>
|
---|
[12180381] | 112 |
|
---|
[e1030e21] | 113 | <para>
|
---|
| 114 | To test the results, issue: <command>make check</command>.
|
---|
| 115 | </para>
|
---|
[40d6bab] | 116 |
|
---|
[e1030e21] | 117 | <para>
|
---|
| 118 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 119 | </para>
|
---|
[12180381] | 120 |
|
---|
[0ee2aa3] | 121 | <screen role="root"><userinput>make install &&
|
---|
| 122 | make install-html &&
|
---|
| 123 |
|
---|
[5b149c73] | 124 | mv /usr/lib/libguile-*-gdb.scm /usr/share/gdb/auto-load/usr/lib &&
|
---|
[0ee2aa3] | 125 | mv /usr/share/doc/guile-&guile-version;/{guile.html,ref} &&
|
---|
| 126 | mv /usr/share/doc/guile-&guile-version;/r5rs{.html,} &&
|
---|
[0461254] | 127 |
|
---|
[ac38e9dc] | 128 | find examples -name "Makefile*" -delete &&
|
---|
[0ee2aa3] | 129 | cp -vR examples /usr/share/doc/guile-&guile-version; &&
|
---|
[dcd55b37] | 130 |
|
---|
[ec7940be] | 131 | for DIRNAME in r5rs ref; do
|
---|
[4890200] | 132 | install -v -m644 doc/${DIRNAME}/*.txt \
|
---|
| 133 | /usr/share/doc/guile-&guile-version;/${DIRNAME}
|
---|
[0ee2aa3] | 134 | done &&
|
---|
| 135 | unset DIRNAME</userinput></screen>
|
---|
[d5595a31] | 136 |
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="commands">
|
---|
| 140 | <title>Command Explanations</title>
|
---|
| 141 |
|
---|
| 142 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 143 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 144 |
|
---|
[dbede5d0] | 145 | </sect2>
|
---|
[dcd55b37] | 146 |
|
---|
[12180381] | 147 | <sect2 role="content">
|
---|
| 148 | <title>Contents</title>
|
---|
| 149 |
|
---|
| 150 | <segmentedlist>
|
---|
| 151 | <segtitle>Installed Programs</segtitle>
|
---|
| 152 | <segtitle>Installed Libraries</segtitle>
|
---|
| 153 | <segtitle>Installed Directories</segtitle>
|
---|
| 154 |
|
---|
| 155 | <seglistitem>
|
---|
[b24bfef] | 156 | <seg>
|
---|
| 157 | guild, guile, guile-config, guile-snarf and guile-tools
|
---|
| 158 | </seg>
|
---|
| 159 | <seg>
|
---|
| 160 | libguile-2.0.so and libguilereadline-v-18.so
|
---|
| 161 | </seg>
|
---|
| 162 | <seg>
|
---|
| 163 | /usr/include/guile,
|
---|
[4890200] | 164 | /usr/lib/guile,
|
---|
| 165 | /usr/share/doc/guile-&guile-version; and
|
---|
[b24bfef] | 166 | /usr/share/guile
|
---|
| 167 | </seg>
|
---|
[12180381] | 168 | </seglistitem>
|
---|
| 169 | </segmentedlist>
|
---|
| 170 |
|
---|
| 171 | <variablelist>
|
---|
| 172 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 173 | <?dbfo list-presentation="list"?>
|
---|
| 174 | <?dbhtml list-presentation="table"?>
|
---|
| 175 |
|
---|
| 176 | <varlistentry id="guile-prog">
|
---|
| 177 | <term><command>guile</command></term>
|
---|
| 178 | <listitem>
|
---|
[e1030e21] | 179 | <para>
|
---|
| 180 | is a stand-alone Scheme interpreter for
|
---|
| 181 | <application>Guile</application>.
|
---|
| 182 | </para>
|
---|
[12180381] | 183 | <indexterm zone="guile guile-prog">
|
---|
| 184 | <primary sortas="b-guile">guile</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="guile-config">
|
---|
| 190 | <term><command>guile-config</command></term>
|
---|
| 191 | <listitem>
|
---|
[e1030e21] | 192 | <para>
|
---|
| 193 | is a <application>Guile</application> script which provides the
|
---|
| 194 | information necessary to link your programs against the
|
---|
| 195 | <application>Guile</application> library, in much the same way
|
---|
| 196 | PkgConfig does.
|
---|
| 197 | </para>
|
---|
[12180381] | 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>
|
---|
[e1030e21] | 207 | <para>
|
---|
| 208 | is a script to parse declarations in your
|
---|
| 209 | <application>C</application> code for
|
---|
| 210 | <application>Scheme</application> visible
|
---|
| 211 | <application>C</application> functions.
|
---|
| 212 | </para>
|
---|
[12180381] | 213 | <indexterm zone="guile guile-snarf">
|
---|
| 214 | <primary sortas="b-guile-snarf">guile-snarf</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 |
|
---|
[e1030e21] | 219 | <varlistentry id="guild">
|
---|
| 220 | <term><command>guild</command></term>
|
---|
| 221 | <listitem>
|
---|
| 222 | <para>
|
---|
[601a838] | 223 | is a wrapper program installed along with <command>guile</command>,
|
---|
[e1030e21] | 224 | which knows where a particular module is installed and calls it,
|
---|
| 225 | passing its arguments to the program.
|
---|
| 226 | </para>
|
---|
| 227 | <indexterm zone="guile guild">
|
---|
| 228 | <primary sortas="b-guild">guild</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
[12180381] | 233 | <varlistentry id="guile-tools">
|
---|
| 234 | <term><command>guile-tools</command></term>
|
---|
| 235 | <listitem>
|
---|
[e1030e21] | 236 | <para>
|
---|
| 237 | is a symlink to <command>guild</command>.
|
---|
| 238 | </para>
|
---|
[12180381] | 239 | <indexterm zone="guile guile-tools">
|
---|
| 240 | <primary sortas="b-guile-tools">guile-tools</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
[b24bfef] | 244 |
|
---|
[12180381] | 245 | </variablelist>
|
---|
[b24bfef] | 246 |
|
---|
[12180381] | 247 | </sect2>
|
---|
[b24bfef] | 248 |
|
---|
[61a7ee8] | 249 | </sect1>
|
---|