aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/expect-inst.xml
blob: a0e0ac1f3bcc0cdaca6f8decd98f32ea6abfef4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Installation of Expect</title>

<para>First apply a patch:</para>

<para><screen><userinput>patch -Np1 -i ../expect-&expect-patch-version;.patch</userinput></screen></para>

<para>This fixes a bug in Expect that can result in bogus failures during the
GCC test suite run.</para>

<para>Now prepare Expect to be compiled:</para>

<para><screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen></para>

<para>Build the package:</para>

<para><screen><userinput>make</userinput></screen></para>

<para>This package has a testsuite available which can perform a number of 
checks to ensure it built correctly.  Should you choose to run it, the 
following command will do so:</para>

<para><screen><userinput>make test</userinput></screen></para>

<para>And install:</para>

<para><screen><userinput>make install</userinput></screen></para>

<para>You can now remove the source directories of both Tcl and Expect.</para>

</sect2>