expect.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <sect1 id="ch-tools-expect" xreflabel="Expect">
  2. <title>Installing Expect-&expect-version;</title>
  3. <?dbhtml filename="expect.html" dir="chapter05"?>
  4. <para>The Expect package contains a program for doing scripted dialogues with
  5. other interactive programs.</para>
  6. <screen>&buildtime; &expect-time-tools;
  7. &diskspace; &expect-compsize-tools;</screen>
  8. &aa-expect-down;
  9. &aa-expect-dep;
  10. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  11. <sect2>
  12. <title>Installation of Expect</title>
  13. <para>First apply a patch:</para>
  14. <screen><userinput>patch -Np1 -i ../&expect-patch;</userinput></screen>
  15. <para>This fixes a bug in Expect that can result in bogus failures during the
  16. GCC test suite run.</para>
  17. <para>Now prepare Expect for compilation:</para>
  18. <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen>
  19. <para>The meaning of the configure options:</para>
  20. <itemizedlist>
  21. <listitem><para><userinput>--with-tcl=/tools/lib</userinput>: This ensures that
  22. the configure script finds the Tcl installation in our temporary tools location.
  23. We don't want it to find an existing one that may possibly reside on the host
  24. system.</para></listitem>
  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. <para>Build the package:</para>
  30. <screen><userinput>make</userinput></screen>
  31. <para>(If you insist on testing the results, then issue:
  32. <userinput>make test</userinput>. However, the Expect test suite is known to
  33. experience failures under certain host conditions that are not fully
  34. understood. Therefore, test suite failures here are not surprising, and are not
  35. considered critical.)</para>
  36. <para>And install it:</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. &aa-expect-shortdesc;
  46. &aa-expect-desc;
  47. </sect1>