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">
6 <sect1 id="ch-tools-expect" xreflabel="Expect">
7 <title>Expect-&expect-version;</title>
8 <?dbhtml filename="expect.html"?>
10 <indexterm zone="ch-tools-expect"><primary sortas="a-Expect">Expect</primary></indexterm>
12 <para>The Expect package contains a program for doing scripted dialogues with
13 other interactive programs.</para>
15 <screen>&buildtime; 0.1 SBU
16 &diskspace; 3.9 MB</screen>
18 <para>Expect installation depends on: Bash, Binutils, Coreutils, Diffutils,
19 GCC, Glibc, Grep, Make, Sed, Tcl.</para>
24 <title>Installation of Expect</title>
26 <para>First fix a bug that can result in bogus failures during the GCC test
29 <screen><userinput>patch -Np1 -i ../expect-&expect-version;-spawn-1.patch</userinput></screen>
31 <para>Now prepare Expect for compilation:</para>
33 <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen>
35 <para>The meaning of the configure options:</para>
38 <listitem><para><userinput>--with-tcl=/tools/lib</userinput>: This ensures that
39 the configure script finds the Tcl installation in our temporary tools location.
40 We don't want it to find an existing one that may possibly reside on the host
41 system.</para></listitem>
43 <listitem><para><userinput>--with-x=no</userinput>: This tells the configure
44 script not to search for Tk (the Tcl GUI component) or the X Window System
45 libraries, both of which may possibly reside on the host system.</para></listitem>
48 <para>Build the package:</para>
50 <screen><userinput>make</userinput></screen>
52 <para>(If you insist on testing the results, then issue:
53 <userinput>make test</userinput>. However, the Expect test suite is known to
54 experience failures under certain host conditions that are not fully
55 understood. Therefore, test suite failures here are not surprising, and are not
56 considered critical.)</para>
58 <para>And install it:</para>
60 <screen><userinput>make SCRIPTS="" install</userinput></screen>
62 <para>The meaning of the make parameter:</para>
65 <listitem><para><userinput>SCRIPTS=""</userinput>: This prevents installation
66 of the supplementary expect scripts which are not needed.</para></listitem>
69 <para>You can now remove the source directories of both Tcl and Expect.</para>
74 <sect2 id="contents-expect"><title>Contents of Expect</title>
76 <para><emphasis>Installed program</emphasis>: expect</para>
78 <para><emphasis>Installed library</emphasis>: libexpect&expect-version;.a</para>
83 <sect2><title>Short description</title>
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
87 programs according to a script.</para>