[bc82645e] | 1 | <sect1 id="ch05-expect">
|
---|
| 2 | <title>Installing Expect-&expect-version;</title>
|
---|
| 3 | <?dbhtml filename="expect.html" dir="chapter05"?>
|
---|
| 4 |
|
---|
[f27835d] | 5 | <screen>Estimated build time: &expect-time-tools;
|
---|
| 6 | Estimated required disk space: &expect-compsize-tools;</screen>
|
---|
[bc82645e] | 7 |
|
---|
[278c35c7] | 8 | &aa-expect-shortdesc;
|
---|
[d0dfce4] | 9 | &aa-expect-dep;
|
---|
[73aedd1d] | 10 |
|
---|
| 11 | <sect2><title> </title><para> </para></sect2>
|
---|
| 12 |
|
---|
| 13 | <sect2>
|
---|
| 14 | <title>Installation of Expect</title>
|
---|
| 15 |
|
---|
| 16 | <para>First apply a patch:</para>
|
---|
| 17 |
|
---|
| 18 | <screen><userinput>patch -Np1 -i ../&expect-patch;</userinput></screen>
|
---|
| 19 |
|
---|
| 20 | <para>This fixes a bug in Expect that can result in bogus failures during the
|
---|
| 21 | GCC test suite run.</para>
|
---|
| 22 |
|
---|
[d27a27b] | 23 | <para>Now prepare Expect for compilation:</para>
|
---|
[73aedd1d] | 24 |
|
---|
| 25 | <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen>
|
---|
| 26 |
|
---|
| 27 | <para>The meaning of the configure options:</para>
|
---|
| 28 |
|
---|
| 29 | <itemizedlist>
|
---|
| 30 | <listitem><para><userinput>--with-tcl=/tools/lib</userinput>: This ensures that
|
---|
| 31 | the configure script finds the Tcl installation in our temporary tools location.
|
---|
| 32 | We don't want it to find an existing one that may possibly reside on the host
|
---|
| 33 | system.</para></listitem>
|
---|
| 34 |
|
---|
| 35 | <listitem><para><userinput>--with-x=no</userinput>: This tells the configure
|
---|
| 36 | script not to search for Tk (the Tcl GUI component) or the X Window System
|
---|
| 37 | libraries, both of which may possibly reside on the host system.</para></listitem>
|
---|
| 38 | </itemizedlist>
|
---|
| 39 |
|
---|
| 40 | <para>Build the package:</para>
|
---|
| 41 |
|
---|
| 42 | <screen><userinput>make</userinput></screen>
|
---|
| 43 |
|
---|
| 44 | <para>This package has a test suite available which can perform a number of
|
---|
| 45 | checks to ensure it built correctly. However, the Expect test suite here in
|
---|
| 46 | Chapter 5 is known to experience failures under certain host conditions that
|
---|
| 47 | are not fully understood. Therefore, test suite failures here are not
|
---|
| 48 | surprising, but are not considered critical. Should you choose to run the test
|
---|
| 49 | suite, the following command will do so:</para>
|
---|
| 50 |
|
---|
| 51 | <screen><userinput>make test</userinput></screen>
|
---|
| 52 |
|
---|
| 53 | <para>And install:</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput>make SCRIPTS="" install</userinput></screen>
|
---|
| 56 |
|
---|
[5763f675] | 57 | <para>The meaning of the make parameter:</para>
|
---|
[73aedd1d] | 58 |
|
---|
| 59 | <itemizedlist>
|
---|
| 60 | <listitem><para><userinput>SCRIPTS=""</userinput>: This prevents installation of
|
---|
| 61 | the supplementary expect scripts which are not needed.</para></listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
| 64 | <para>You can now remove the source directories of both Tcl and Expect.</para>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
[bc82645e] | 67 |
|
---|
| 68 | </sect1>
|
---|
| 69 |
|
---|