tcl.xml 2.4 KB

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