tcl.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-tools-tcl" role="wrap">
  9. <title>Tcl-&tcl-version;</title>
  10. <?dbhtml filename="tcl.html"?>
  11. <indexterm zone="ch-tools-tcl"><primary sortas="a-Tcl">Tcl</primary></indexterm>
  12. <sect2 role="package"><title/>
  13. <para>The Tcl package contains the Tool Command Language.</para>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.9 SBU</seg><seg>23.3 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <segmentedlist>
  20. <segtitle>&dependencies;</segtitle>
  21. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  22. GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of Tcl</title>
  27. <para>This package and the next two (Expect and DejaGNU) are
  28. installed to support running the test suites for GCC and Binutils.
  29. Installing three packages for testing purposes may seem excessive, but
  30. it is very reassuring, if not essential, to know that the most
  31. important tools are working properly. Even if the test suites are not
  32. run in this chapter (they are not mandatory), these packages
  33. are required to run the test suites in <xref
  34. linkend="chapter-building-system"/>.</para>
  35. <para>Prepare Tcl for compilation:</para>
  36. <screen><userinput>cd unix
  37. ./configure --prefix=/tools</userinput></screen>
  38. <para>Build the package:</para>
  39. <screen><userinput>make</userinput></screen>
  40. <para>To test the results, issue: <userinput>TZ=UTC make
  41. test</userinput>. The Tcl test suite is known to experience failures
  42. under certain host conditions that are not fully understood.
  43. Therefore, test suite failures here are not surprising, and are not
  44. considered critical. The <parameter>TZ=UTC</parameter> parameter sets
  45. the time zone to Coordinated Universal Time (UTC), also known as
  46. Greenwich Mean Time (GMT), but only for the duration of the test suite
  47. run. This ensures that the clock tests are exercised correctly.
  48. Details on the <envar>TZ</envar> environment variable are provided in
  49. <xref linkend="chapter-bootscripts"/>.</para>
  50. <para>Install the package:</para>
  51. <screen><userinput>make install</userinput></screen>
  52. <warning><para><emphasis>Do not</emphasis> remove the
  53. <filename class="directory">tcl&tcl-version;</filename> source directory yet, as the next package
  54. will need its internal headers.</para></warning>
  55. <para>Set a variable containing the full path of the current directory.
  56. The next package, Expect, will use this variable to find Tcl's headers.</para>
  57. <screen><userinput>cd ..
  58. export TCLPATH=`pwd`</userinput></screen>
  59. <para>Now make a necessary symbolic link:</para>
  60. <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
  61. </sect2>
  62. <sect2 id="contents-tcl" role="content"><title>Contents of Tcl</title>
  63. <segmentedlist>
  64. <segtitle>Installed programs</segtitle>
  65. <segtitle>Installed library</segtitle>
  66. <seglistitem><seg>tclsh (link to tclsh8.4) and tclsh8.4</seg><seg>libtcl8.4.so</seg></seglistitem>
  67. </segmentedlist>
  68. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  69. <?dbfo list-presentation="list"?>
  70. <?dbhtml list-presentation="table"?>
  71. <varlistentry id="tclsh8.4">
  72. <term><command>tclsh8.4</command></term>
  73. <listitem>
  74. <para>The Tcl command shell</para>
  75. <indexterm zone="ch-tools-tcl tclsh8.4"><primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry id="tclsh">
  79. <term><command>tclsh</command></term>
  80. <listitem>
  81. <para>A link to tclsh8.4</para>
  82. <indexterm zone="ch-tools-tcl tclsh"><primary sortas="b-tclsh">tclsh</primary></indexterm>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="libtcl8.4.so">
  86. <term><filename class="libraryfile">libtcl8.4.so</filename></term>
  87. <listitem>
  88. <para>The Tcl library</para>
  89. <indexterm zone="ch-tools-tcl libtcl8.4.so"><primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary></indexterm>
  90. </listitem>
  91. </varlistentry>
  92. </variablelist>
  93. </sect2>
  94. </sect1>