tcl.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-tcl" xreflabel="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 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Tcl installation depends on</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  20. GCC, Glibc, Grep, Make, 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 are only installed to support running the
  26. test suites for GCC and Binutils. Installing three packages just for testing
  27. purposes may seem like overkill, but it is very reassuring, if not essential,
  28. to know that our most important tools are working properly. Even if the
  29. the test suites are not run in this chapter (we recommend not running them),
  30. these packages are still required to run the test suites in the next
  31. chapter.</para>
  32. <para>Prepare Tcl for compilation:</para>
  33. <screen><userinput>cd unix
  34. ./configure --prefix=/tools</userinput></screen>
  35. <para>Build the package:</para>
  36. <screen><userinput>make</userinput></screen>
  37. <para>If you want to test the results, then issue:
  38. <userinput>TZ=UTC make test</userinput>. However, the Tcl test suite is known
  39. to experience failures under certain host conditions that are not fully
  40. understood. Therefore, test suite failures here are not surprising, and are not
  41. considered critical. The <parameter>TZ=UTC</parameter> parameter sets the time
  42. zone to Coordinated Universal Time (UTC) also known as Greenwich Mean Time
  43. (GMT), but only for the duration of the test suite run. This ensures the clock
  44. tests are exercised correctly. More information on the TZ environment variable
  45. will be given later on in <xref linkend="chapter-bootscripts"/>.</para>
  46. <para>Install the package:</para>
  47. <screen><userinput>make install</userinput></screen>
  48. <warning><para><emphasis>Do not remove</emphasis> the
  49. <filename class="directory">tcl&tcl-version;</filename> source directory yet, as the next package
  50. will need its internal headers.</para></warning>
  51. <para>Now make a necessary symbolic link:</para>
  52. <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
  53. </sect2>
  54. <sect2 id="contents-tcl" role="content"><title>Contents of Tcl</title>
  55. <segmentedlist>
  56. <segtitle>Installed programs</segtitle>
  57. <segtitle>Installed library</segtitle>
  58. <seglistitem><seg>tclsh (link to tclsh8.4), tclsh8.4</seg><seg>libtcl8.4.so</seg></seglistitem>
  59. </segmentedlist>
  60. <variablelist><title>Short descriptions</title>
  61. <varlistentry id="tclsh8.4">
  62. <term><command>tclsh8.4</command></term>
  63. <listitem>
  64. <indexterm zone="ch-tools-tcl tclsh8.4"><primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
  65. <para>is the Tcl command shell.</para>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry id="libtcl8.4.so">
  69. <term><filename class="libraryfile">libtcl8.4.so</filename></term>
  70. <listitem>
  71. <indexterm zone="ch-tools-tcl libtcl8.4.so"><primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary></indexterm>
  72. <para>is the Tcl library.</para>
  73. </listitem>
  74. </varlistentry>
  75. </variablelist>
  76. </sect2>
  77. </sect1>