tcl.xml 4.4 KB

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