expect.xml 2.3 KB

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