source: chapter05/expect.xml@ 32ddf4a

Last change on this file since 32ddf4a was 673b0d8, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Merged newxml into HEAD

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

  • Property mode set to 100644
File size: 3.0 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">
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<para>The Expect package contains a program for doing scripted dialogues with
13other interactive programs.</para>
14
15<screen>&buildtime; 0.1 SBU
16&diskspace; 3.9 MB</screen>
17
18<para>Expect installation depends on: Bash, Binutils, Coreutils, Diffutils,
19GCC, Glibc, Grep, Make, Sed, Tcl.</para>
20
21
22
23<sect2>
24<title>Installation of Expect</title>
25
26<para>First fix a bug that can result in bogus failures during the GCC test
27suite run:</para>
28
29<screen><userinput>patch -Np1 -i ../expect-&expect-version;-spawn-1.patch</userinput></screen>
30
31<para>Now prepare Expect for compilation:</para>
32
33<screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen>
34
35<para>The meaning of the configure options:</para>
36
37<itemizedlist>
38<listitem><para><userinput>--with-tcl=/tools/lib</userinput>: This ensures that
39the configure script finds the Tcl installation in our temporary tools location.
40We don't want it to find an existing one that may possibly reside on the host
41system.</para></listitem>
42
43<listitem><para><userinput>--with-x=no</userinput>: This tells the configure
44script not to search for Tk (the Tcl GUI component) or the X Window System
45libraries, both of which may possibly reside on the host system.</para></listitem>
46</itemizedlist>
47
48<para>Build the package:</para>
49
50<screen><userinput>make</userinput></screen>
51
52<para>(If you insist on testing the results, then issue:
53<userinput>make test</userinput>. However, the Expect test suite is known to
54experience failures under certain host conditions that are not fully
55understood. Therefore, test suite failures here are not surprising, and are not
56considered critical.)</para>
57
58<para>And install it:</para>
59
60<screen><userinput>make SCRIPTS="" install</userinput></screen>
61
62<para>The meaning of the make parameter:</para>
63
64<itemizedlist>
65<listitem><para><userinput>SCRIPTS=""</userinput>: This prevents installation
66of the supplementary expect scripts which are not needed.</para></listitem>
67</itemizedlist>
68
69<para>You can now remove the source directories of both Tcl and Expect.</para>
70
71</sect2>
72
73
74<sect2 id="contents-expect"><title>Contents of Expect</title>
75
76<para><emphasis>Installed program</emphasis>: expect</para>
77
78<para><emphasis>Installed library</emphasis>: libexpect&expect-version;.a</para>
79
80</sect2>
81
82
83<sect2><title>Short description</title>
84
85<indexterm zone="ch-tools-expect expect"><primary sortas="b-expect">expect</primary></indexterm>
86<para id="expect"><command>expect</command> <quote>talks</quote> to other interactive
87programs according to a script.</para>
88
89</sect2>
90
91
92</sect1>
Note: See TracBrowser for help on using the repository browser.