tcl.xml 3.9 KB

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