source: chapter05/expect.xml@ 311e8a5

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 12.2 12.2-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk v5_1 v5_1_1 xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 311e8a5 was d0dfce4, checked in by Gerard Beekmans <gerard@…>, 21 years ago

Revert Alex's changes back to previous state

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3106 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[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;
6Estimated required disk space: &expect-compsize-tools;</screen>
[bc82645e]7
[278c35c7]8&aa-expect-shortdesc;
[d0dfce4]9&aa-expect-dep;
[73aedd1d]10
11<sect2><title>&nbsp;</title><para>&nbsp;</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
21GCC 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
31the configure script finds the Tcl installation in our temporary tools location.
32We don't want it to find an existing one that may possibly reside on the host
33system.</para></listitem>
34
35<listitem><para><userinput>--with-x=no</userinput>: This tells the configure
36script not to search for Tk (the Tcl GUI component) or the X Window System
37libraries, 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
45checks to ensure it built correctly. However, the Expect test suite here in
46Chapter 5 is known to experience failures under certain host conditions that
47are not fully understood. Therefore, test suite failures here are not
48surprising, but are not considered critical. Should you choose to run the test
49suite, 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
61the 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
Note: See TracBrowser for help on using the repository browser.