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
|
---|
13 | other 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,
|
---|
19 | GCC, 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
|
---|
27 | suite 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
|
---|
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>
|
---|
42 |
|
---|
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>
|
---|
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
|
---|
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>
|
---|
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
|
---|
66 | of 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
|
---|
87 | programs according to a script.</para>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 |
|
---|
92 | </sect1>
|
---|