tcl.xml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <sect1 id="ch05-tcl" xreflabel="Tcl">
  2. <title>Installing Tcl-&tcl-version;</title>
  3. <?dbhtml filename="tcl.html" dir="chapter05"?>
  4. <para>The Tcl package contains the Tool Command Language.</para>
  5. <screen>Estimated build time: &tcl-time-tools;
  6. Estimated required disk space: &tcl-compsize-tools;</screen>
  7. &aa-tcl-down;
  8. &aa-tcl-dep;
  9. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  10. <sect2>
  11. <title>Installation of Tcl</title>
  12. <para>This package and the next two are only installed to be able to run the
  13. test suites for GCC and Binutils. Installing three packages just for testing
  14. purposes may seem like overkill, but it is very reassuring, if not essential,
  15. to know that our most important tools are working properly.</para>
  16. <para>Prepare Tcl for compilation:</para>
  17. <screen><userinput>cd unix
  18. ./configure --prefix=/tools</userinput></screen>
  19. <para>Build the package:</para>
  20. <screen><userinput>make</userinput></screen>
  21. <para>As discussed earlier, we don't recommend running the test suites for the
  22. temporary tools here in this chapter. If you still want to run the Tcl test
  23. suite anyway, the following command will do so. However, you should be aware
  24. that the Tcl test suite is sometimes known to experience failures under certain
  25. host conditions that are not fully understood. Therefore, test suite failures
  26. here are not surprising, but are not considered critical:</para>
  27. <screen><userinput>TZ=UTC make test</userinput></screen>
  28. <para>The meaning of the make parameter:</para>
  29. <itemizedlist>
  30. <listitem><para><userinput>TZ=UTC</userinput>: This sets the time zone to
  31. Coordinated Universal Time (UTC) also known as Greenwich Mean Time (GMT), but
  32. only for the duration of the test suite run. This ensures the clock tests are
  33. exercised correctly. More information on the TZ environment variable will be
  34. given later on in <xref linkend="chapter07"/>.</para></listitem>
  35. </itemizedlist>
  36. <para>Sometimes, package test suites will give false failures. You can
  37. consult the LFS Wiki at <ulink url="http://wiki.linuxfromscratch.org/"/>
  38. to verify that these failures are normal. This applies to all tests
  39. throughout the book.</para>
  40. <para>Install the package:</para>
  41. <screen><userinput>make install</userinput></screen>
  42. <!-- HACK - Force some whitespace to appease tidy -->
  43. <literallayout></literallayout>
  44. <warning><para><emphasis>Do not remove</emphasis> the
  45. <filename>tcl&tcl-version;</filename> source directory yet, as the next package
  46. will need its internal headers.</para></warning>
  47. <!-- HACK - Force some whitespace to appease tidy -->
  48. <literallayout></literallayout>
  49. <para>Make a necessary symbolic link:</para>
  50. <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
  51. </sect2>
  52. &aa-tcl-shortdesc;
  53. &aa-tcl-desc;
  54. </sect1>