1 | <sect2><title> </title><para> </para></sect2>
|
---|
2 |
|
---|
3 | <sect2>
|
---|
4 | <title>Installation of Expect</title>
|
---|
5 |
|
---|
6 | <para>First apply a patch:</para>
|
---|
7 |
|
---|
8 | <para><screen><userinput>patch -Np1 -i ../expect-&expect-patch-version;.patch</userinput></screen></para>
|
---|
9 |
|
---|
10 | <para>This fixes a bug in Expect that can result in bogus failures during the
|
---|
11 | GCC test suite run.</para>
|
---|
12 |
|
---|
13 | <para>Now prepare Expect to be compiled:</para>
|
---|
14 |
|
---|
15 | <para><screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen></para>
|
---|
16 |
|
---|
17 | <para>The meaning of the configure options:</para>
|
---|
18 |
|
---|
19 | <itemizedlist>
|
---|
20 | <listitem><para><userinput>--with-tcl=/tools/lib</userinput>: This ensures that
|
---|
21 | the configure script finds the Tcl installation in our temporary tools location.
|
---|
22 | We don't want it to find an existing one that may possibly reside on the host
|
---|
23 | system.</para></listitem>
|
---|
24 |
|
---|
25 | <listitem><para><userinput>--with-x=no</userinput>: This tells the configure
|
---|
26 | script not to search for Tk (the Tcl GUI component) or the X Window System
|
---|
27 | libraries, both of which may possibly reside on the host system.</para></listitem>
|
---|
28 | </itemizedlist>
|
---|
29 |
|
---|
30 | <para>Build the package:</para>
|
---|
31 |
|
---|
32 | <para><screen><userinput>make</userinput></screen></para>
|
---|
33 |
|
---|
34 | <para>This package has a test suite available which can perform a number of
|
---|
35 | checks to ensure it built correctly. Should you choose to run it, the
|
---|
36 | following command will do so:</para>
|
---|
37 |
|
---|
38 | <para><screen><userinput>make test</userinput></screen></para>
|
---|
39 |
|
---|
40 | <para>And install:</para>
|
---|
41 |
|
---|
42 | <para><screen><userinput>make SCRIPTS="" install</userinput></screen></para>
|
---|
43 |
|
---|
44 | <para>The meaning of the make option:</para>
|
---|
45 |
|
---|
46 | <itemizedlist>
|
---|
47 | <listitem><para><userinput>SCRIPTS=""</userinput>: This prevents installation of
|
---|
48 | the supplementary expect scripts which are not needed.</para></listitem>
|
---|
49 | </itemizedlist>
|
---|
50 |
|
---|
51 | <para>You can now remove the source directories of both Tcl and Expect.</para>
|
---|
52 |
|
---|
53 | </sect2>
|
---|
54 |
|
---|