expect.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 fix a bug that can result in bogus failures during the GCC test
  14. suite run:</para>
  15. <screen><userinput>patch -Np1 -i ../&expect-patch;</userinput></screen>
  16. <para>Now prepare Expect for compilation:</para>
  17. <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen>
  18. <para>The meaning of the configure options:</para>
  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. <listitem><para><userinput>--with-x=no</userinput>: This tells the configure
  25. script not to search for Tk (the Tcl GUI component) or the X Window System
  26. libraries, both of which may possibly reside on the host system.</para></listitem>
  27. </itemizedlist>
  28. <para>Build the package:</para>
  29. <screen><userinput>make</userinput></screen>
  30. <para>(If you insist on testing the results, then issue:
  31. <userinput>make test</userinput>. However, the Expect test suite is known to
  32. experience failures under certain host conditions that are not fully
  33. understood. Therefore, test suite failures here are not surprising, and are not
  34. considered critical.)</para>
  35. <para>And install it:</para>
  36. <screen><userinput>make SCRIPTS="" install</userinput></screen>
  37. <para>The meaning of the make parameter:</para>
  38. <itemizedlist>
  39. <listitem><para><userinput>SCRIPTS=""</userinput>: This prevents installation
  40. of the supplementary expect scripts which are not needed.</para></listitem>
  41. </itemizedlist>
  42. <para>You can now remove the source directories of both Tcl and Expect.</para>
  43. </sect2>
  44. &aa-expect-shortdesc;
  45. &aa-expect-desc;
  46. </sect1>