tcl.xml 4.1 KB

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