tcl.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/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>0.9 SBU</seg>
  21. <seg>23.3 MB</seg>
  22. </seglistitem>
  23. </segmentedlist>
  24. <segmentedlist>
  25. <segtitle>&dependencies;</segtitle>
  26. <seglistitem>
  27. <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep,
  28. Make, and Sed</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Tcl</title>
  34. <para>This package and the next two (Expect and DejaGNU) are installed
  35. to support running the test suites for GCC and Binutils. Installing
  36. three packages for testing purposes may seem excessive, but it is very
  37. reassuring, if not essential, to know that the most important tools are
  38. working properly. Even if the test suites are not run in this chapter
  39. (they are not mandatory), these packages are required to run the test
  40. suites in <xref linkend="chapter-building-system"/>.</para>
  41. <para>Tcl's configure script has a syntax error:</para>
  42. <screen><userinput>cd unix
  43. cp -v configure{,.orig}
  44. sed "s/relid'/relid/" configure.orig &gt; configure</userinput></screen>
  45. <para>Prepare Tcl for compilation:</para>
  46. <screen><userinput>./configure --prefix=/tools</userinput></screen>
  47. <para>Build the package:</para>
  48. <screen><userinput>make</userinput></screen>
  49. <para>To test the results, issue: <userinput>TZ=UTC make test</userinput>.
  50. The Tcl test suite is known to experience failures under certain host
  51. conditions that are not fully understood. Therefore, test suite failures
  52. here are not surprising, and are not considered critical. The
  53. <parameter>TZ=UTC</parameter> parameter sets the time zone to Coordinated
  54. Universal Time (UTC), also known as Greenwich Mean Time (GMT), but only
  55. for the duration of the test suite run. This ensures that the clock tests
  56. are exercised correctly. Details on the <envar>TZ</envar> environment
  57. variable are provided in <xref linkend="chapter-bootscripts"/>.</para>
  58. <para>Install the package:</para>
  59. <screen><userinput>make install</userinput></screen>
  60. <para>Install Tcl's headers. The next package, Expect, requires them
  61. to build.</para>
  62. <screen><userinput>make install-private-headers</userinput></screen>
  63. <para>Now make a necessary symbolic link:</para>
  64. <screen><userinput>ln -sv tclsh8.4 /tools/bin/tclsh</userinput></screen>
  65. </sect2>
  66. <sect2 id="contents-tcl" role="content">
  67. <title>Contents of Tcl</title>
  68. <segmentedlist>
  69. <segtitle>Installed programs</segtitle>
  70. <segtitle>Installed library</segtitle>
  71. <seglistitem>
  72. <seg>tclsh (link to tclsh8.4) and tclsh8.4</seg>
  73. <seg>libtcl8.4.so</seg>
  74. </seglistitem>
  75. </segmentedlist>
  76. <variablelist>
  77. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  78. <?dbfo list-presentation="list"?>
  79. <?dbhtml list-presentation="table"?>
  80. <varlistentry id="tclsh8.4">
  81. <term><command>tclsh8.4</command></term>
  82. <listitem>
  83. <para>The Tcl command shell</para>
  84. <indexterm zone="ch-tools-tcl tclsh8.4">
  85. <primary sortas="b-tclsh8.4">tclsh8.4</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="tclsh">
  90. <term><command>tclsh</command></term>
  91. <listitem>
  92. <para>A link to tclsh8.4</para>
  93. <indexterm zone="ch-tools-tcl tclsh">
  94. <primary sortas="b-tclsh">tclsh</primary>
  95. </indexterm>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry id="libtcl8.4.so">
  99. <term><filename class="libraryfile">libtcl8.4.so</filename></term>
  100. <listitem>
  101. <para>The Tcl library</para>
  102. <indexterm zone="ch-tools-tcl libtcl8.4.so">
  103. <primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. </variablelist>
  108. </sect2>
  109. </sect1>