source: chapter05/expect.xml@ 6d3af72

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 6d3af72 was fc5780a, checked in by Matthew Burgess <matthew@…>, 20 years ago

Add description of libexpect and correct its version number (fixes bug 912)

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4236 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.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-tools-expect" xreflabel="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>Expect installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Glibc, Grep, Make, Sed, 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 bogus 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
47the configure script finds the Tcl installation in our temporary tools location.
48We don't want it to find an existing one that may possibly reside on the host
49system.</para></listitem>
50</varlistentry>
51
52<varlistentry>
53<term><parameter>--with-x=no</parameter></term>
54<listitem><para>This tells the configure
55script not to search for Tk (the Tcl GUI component) or the X Window System
56libraries, both of which may possibly reside on the host system.</para></listitem>
57</varlistentry>
58</variablelist>
59
60<para>Build the package:</para>
61
62<screen><userinput>make</userinput></screen>
63
64<para>(If you want to test the results, then issue:
65<userinput>make test</userinput>. However, the Expect test suite is known to
66experience failures under certain host conditions that are not within our
67control. Therefore, test suite failures here are not surprising, and are not
68considered critical.)</para>
69
70<para>And install it:</para>
71
72<screen><userinput>make SCRIPTS="" install</userinput></screen>
73
74<para>The meaning of the make parameter:</para>
75
76<variablelist>
77<varlistentry>
78<term><parameter>SCRIPTS=""</parameter></term>
79<listitem><para>This prevents installation
80of the supplementary expect scripts which are not needed.</para></listitem>
81</varlistentry>
82</variablelist>
83
84<para>You can now remove the source directories of both Tcl and Expect.</para>
85
86</sect2>
87
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><title>Short description</title>
98
99<varlistentry id="expect">
100<term><command>expect</command></term>
101<listitem>
102<indexterm zone="ch-tools-expect expect"><primary sortas="b-expect">expect</primary></indexterm>
103<para><quote>talks</quote> to other interactive
104programs according to a script.</para>
105</listitem>
106</varlistentry>
107
108<varlistentry id="libexpect">
109<term><filename class="libraryfile">libexpect-5.42.a</filename></term>
110<listitem>
111<para>contains functions that allow Expect to be used as a Tcl extension or to
112be used directly from C or C++ (without Tcl)."</para>
113<indexterm zone="ch-tools-expect libexpect"><primary
114sortas="c-libexpect-5.42">libexpect-5.42</primary></indexterm>
115</listitem>
116</varlistentry>
117</variablelist>
118
119</sect2>
120
121
122</sect1>
Note: See TracBrowser for help on using the repository browser.