tcl.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-tcl" xreflabel="Tcl">
  7. <title>Tcl-&tcl-version;</title>
  8. <?dbhtml filename="tcl.html"?>
  9. <indexterm zone="ch-tools-tcl"><primary sortas="a-Tcl">Tcl</primary></indexterm>
  10. <para>The Tcl package contains the Tool Command Language.</para>
  11. <screen>&buildtime; 0.9 SBU
  12. &diskspace; 23 MB</screen>
  13. <para>Tcl installation depends on: Bash, Binutils, Coreutils, Diffutils,
  14. GCC, Glibc, Grep, Make, Sed.</para>
  15. <sect2>
  16. <title>Installation of Tcl</title>
  17. <para>This package and the next two are only installed to support running the
  18. test suites for GCC and Binutils. Installing three packages just for testing
  19. purposes may seem like overkill, but it is very reassuring, if not essential,
  20. to know that our most important tools are working properly. Even if the
  21. the test suites are not run in this chapter (we recommend not running them),
  22. these packages are still required to run the test suites in the next
  23. chapter.</para>
  24. <para>Prepare Tcl for compilation:</para>
  25. <screen><userinput>cd unix
  26. ./configure --prefix=/tools</userinput></screen>
  27. <para>Build the package:</para>
  28. <screen><userinput>make</userinput></screen>
  29. <para>If you want to test the results, then issue:
  30. <userinput>TZ=UTC make test</userinput>. However, the Tcl test suite is known
  31. to experience failures under certain host conditions that are not fully
  32. understood. Therefore, test suite failures here are not surprising, and are not
  33. considered critical. The <emphasis>TZ=UTC</emphasis> parameter sets the time
  34. zone to Coordinated Universal Time (UTC) also known as Greenwich Mean Time
  35. (GMT), but only for the duration of the test suite run. This ensures the clock
  36. tests are exercised correctly. More information on the TZ environment variable
  37. will be given later on in <xref linkend="chapter-bootscripts"/>.</para>
  38. <para>Install the package:</para>
  39. <screen><userinput>make install</userinput></screen>
  40. <warning><para><emphasis>Do not remove</emphasis> the
  41. <filename>tcl&tcl-version;</filename> source directory yet, as the next package
  42. will need its internal headers.</para></warning>
  43. <para>Now make a necessary symbolic link:</para>
  44. <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
  45. </sect2>
  46. <sect2 id="contents-tcl"><title>Contents of Tcl</title>
  47. <para><emphasis>Installed programs</emphasis>: tclsh (link to tclsh8.4),
  48. tclsh8.4</para>
  49. <para><emphasis>Installed library</emphasis>: libtcl8.4.so</para>
  50. </sect2>
  51. <sect2><title>Short descriptions</title>
  52. <indexterm zone="ch-tools-tcl tclsh8.4"><primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
  53. <para id="tclsh8.4"><command>tclsh8.4</command> is the Tcl command shell.</para>
  54. <indexterm zone="ch-tools-tcl libtcl8.4.so"><primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary></indexterm>
  55. <para id="libtcl8.4.so"><command>libtcl8.4.so</command> is the Tcl library.</para>
  56. </sect2>
  57. </sect1>