source: chapter05/expect.xml@ 0b5096ca

6.1 6.1.1
Last change on this file since 0b5096ca was 0b5096ca, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

PDF fixes in chapter05

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.1/BOOK@4936 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-tools-expect" role="wrap">
7<title>Expect-&expect-version;</title>
8<?dbhtml filename="expect.html"?>
9
10<indexterm zone="ch-tools-expect"><primary sortas="a-Expect">Expect</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Expect package contains a program for carrying out scripted dialogues
14with other interactive programs.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>3.9 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Glibc, Grep, Make, Sed, and Tcl</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of Expect</title>
31
32<para>First, fix a bug that can result in false failures during the GCC test
33suite run:</para>
34
35<screen><userinput>patch -Np1 -i ../expect-&expect-version;-spawn-1.patch</userinput></screen>
36
37<para>Now prepare Expect for compilation:</para>
38
39<screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen>
40
41<para>The meaning of the configure options:</para>
42
43<variablelist>
44<varlistentry>
45<term><parameter>--with-tcl=/tools/lib</parameter></term>
46<listitem><para>This ensures that the configure script finds the Tcl installation in
47the temporary tools location instead of possibly locating an existing
48one on the host system.</para></listitem>
49</varlistentry>
50
51<varlistentry>
52<term><parameter>--with-x=no</parameter></term>
53<listitem><para>This tells the configure script not to search for Tk
54(the Tcl GUI component) or the X Window System libraries, both of
55which may reside on the host system.</para></listitem>
56</varlistentry>
57</variablelist>
58
59<para>Build the package:</para>
60
61<screen><userinput>make</userinput></screen>
62
63<para>To test the results, issue: <userinput>make test</userinput>.
64Note that the Expect test suite is known to experience failures under
65certain host conditions that are not within our control. Therefore,
66test suite failures here are not surprising and are not considered
67critical.</para>
68
69<para>Install the package:</para>
70
71<screen><userinput>make SCRIPTS="" install</userinput></screen>
72
73<para>The meaning of the make parameter:</para>
74
75<variablelist>
76<varlistentry>
77<term><parameter>SCRIPTS=""</parameter></term>
78<listitem><para>This prevents installation of the supplementary expect
79scripts, which are not needed.</para></listitem>
80</varlistentry>
81</variablelist>
82
83<para>The source directories of both Tcl and Expect can now be removed.</para>
84
85<beginpage/>
86
87</sect2>
88
89<sect2 id="contents-expect" role="content"><title>Contents of Expect</title>
90
91<segmentedlist>
92<segtitle>Installed program</segtitle>
93<segtitle>Installed library</segtitle>
94<seglistitem><seg>expect</seg><seg>libexpect-5.42.a</seg></seglistitem>
95</segmentedlist>
96
97<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
98<?dbfo list-presentation="list"?>
99<?dbhtml list-presentation="table"?>
100
101<varlistentry id="expect">
102<term><command>expect</command></term>
103<listitem>
104<para>Communicates with other interactive
105programs according to a script</para>
106<indexterm zone="ch-tools-expect expect"><primary sortas="b-expect">expect</primary></indexterm>
107</listitem>
108</varlistentry>
109
110<varlistentry id="libexpect">
111<term><filename class="libraryfile">libexpect-5.42.a</filename></term>
112<listitem>
113<para>Contains functions that allow Expect to be used as a Tcl extension or to
114be used directly from C or C++ (without Tcl)</para>
115<indexterm zone="ch-tools-expect libexpect"><primary
116sortas="c-libexpect-5.42">libexpect-5.42</primary></indexterm>
117</listitem>
118</varlistentry>
119</variablelist>
120
121</sect2>
122
123</sect1>
124
Note: See TracBrowser for help on using the repository browser.