tcl.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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 three (Expect, DejaGNU, and Check) are
  33. installed to support running the test suites for GCC and Binutils and other
  34. packages. Installing four packages for testing purposes may seem
  35. excessive, but it is very reassuring, if not essential, to know that the
  36. most important tools are working properly. Even if the test suites are not
  37. run in this chapter (they are not mandatory), these packages are required
  38. to run the test 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>Compilation is now complete. As discussed earlier, running the test
  45. suite is not mandatory for the temporary tools here in this chapter. To run
  46. the Tcl test suite anyway, issue the following command:</para>
  47. <screen><userinput remap="test">TZ=UTC make test</userinput></screen>
  48. <para>The Tcl test suite may experience failures under certain host
  49. conditions that are not fully understood. Therefore, test suite failures
  50. here are not surprising, and are not considered critical. The
  51. <parameter>TZ=UTC</parameter> parameter sets the time zone to Coordinated
  52. Universal Time (UTC), also known as Greenwich Mean Time (GMT), but only
  53. for the duration of the test suite run. This ensures that the clock tests
  54. are exercised correctly. Details on the <envar>TZ</envar> environment
  55. variable are provided in <xref linkend="chapter-bootscripts"/>.</para>
  56. <para>Install the package:</para>
  57. <screen><userinput remap="install">make install</userinput></screen>
  58. <para>Make the installed library writable so debugging symbols can
  59. be removed later:</para>
  60. <screen><userinput remap="install">chmod -v u+w /tools/lib/libtcl8.5.so</userinput></screen>
  61. <para>Install Tcl's headers. The next package, Expect, requires them
  62. to build.</para>
  63. <screen><userinput remap="install">make install-private-headers</userinput></screen>
  64. <para>Now make a necessary symbolic link:</para>
  65. <screen><userinput remap="install">ln -sv tclsh8.5 /tools/bin/tclsh</userinput></screen>
  66. </sect2>
  67. <sect2 id="contents-tcl" role="content">
  68. <title>Contents of Tcl</title>
  69. <segmentedlist>
  70. <segtitle>Installed programs</segtitle>
  71. <segtitle>Installed library</segtitle>
  72. <seglistitem>
  73. <seg>tclsh (link to tclsh8.5) and tclsh8.5</seg>
  74. <seg>libtcl8.5.so, libtclstub8.5.a</seg>
  75. </seglistitem>
  76. </segmentedlist>
  77. <variablelist>
  78. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  79. <?dbfo list-presentation="list"?>
  80. <?dbhtml list-presentation="table"?>
  81. <varlistentry id="tclsh8.5">
  82. <term><command>tclsh8.5</command></term>
  83. <listitem>
  84. <para>The Tcl command shell</para>
  85. <indexterm zone="ch-tools-tcl tclsh8.5">
  86. <primary sortas="b-tclsh8.5">tclsh8.5</primary>
  87. </indexterm>
  88. </listitem>
  89. </varlistentry>
  90. <varlistentry id="tclsh">
  91. <term><command>tclsh</command></term>
  92. <listitem>
  93. <para>A link to tclsh8.5</para>
  94. <indexterm zone="ch-tools-tcl tclsh">
  95. <primary sortas="b-tclsh">tclsh</primary>
  96. </indexterm>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="libtcl8.5.so">
  100. <term><filename class="libraryfile">libtcl8.5.so</filename></term>
  101. <listitem>
  102. <para>The Tcl library</para>
  103. <indexterm zone="ch-tools-tcl libtcl8.5.so">
  104. <primary sortas="c-libtcl8.5.so">libtcl8.5.so</primary>
  105. </indexterm>
  106. </listitem>
  107. </varlistentry>
  108. <varlistentry id="libtclstub8.5.a">
  109. <term><filename class="libraryfile">libtclstub8.5.a</filename></term>
  110. <listitem>
  111. <para>The Tcl Stub library</para>
  112. <indexterm zone="ch-tools-tcl libtclstub8.5.a">
  113. <primary sortas="c-libtclstub8.5.a">libtclstub8.5.a</primary>
  114. </indexterm>
  115. </listitem>
  116. </varlistentry>
  117. </variablelist>
  118. </sect2>
  119. </sect1>