tcl.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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-core</productname>
  11. <productnumber>&tcl-version;</productnumber>
  12. <address>&tcl-url;</address>
  13. </sect1info>
  14. <title>Tcl-core-&tcl-version;</title>
  15. <indexterm zone="ch-tools-tcl">
  16. <primary sortas="a-Tcl">Tcl-core</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-core</title>
  32. <para>This package and the next two (Expect and DejaGNU) are
  33. installed to support running the test suites for GCC and Binutils and other
  34. packages. Installing three 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>Note that the Tcl package used here is a minimal version needed
  40. to run the LFS tests. For the full package, see the
  41. <ulink url='&blfs-book;general/tcl.html'>BLFS Tcl procedures</ulink>.</para>
  42. <para>Prepare Tcl for compilation:</para>
  43. <screen><userinput remap="configure">cd unix
  44. ./configure --prefix=/tools</userinput></screen>
  45. <para>Build the package:</para>
  46. <screen><userinput remap="make">make</userinput></screen>
  47. <para>Compilation is now complete. As discussed earlier, running the test
  48. suite is not mandatory for the temporary tools here in this chapter. To run
  49. the Tcl test suite anyway, issue the following command:</para>
  50. <screen><userinput remap="test">TZ=UTC make test</userinput></screen>
  51. <para>The Tcl test suite may experience failures under certain host
  52. conditions that are not fully understood. Therefore, test suite failures
  53. here are not surprising, and are not considered critical. The
  54. <parameter>TZ=UTC</parameter> parameter sets the time zone to Coordinated
  55. Universal Time (UTC), but only
  56. for the duration of the test suite run. This ensures that the clock tests
  57. are exercised correctly. Details on the <envar>TZ</envar> environment
  58. variable are provided in <xref linkend="chapter-bootscripts"/>.</para>
  59. <para>Install the package:</para>
  60. <screen><userinput remap="install">make install</userinput></screen>
  61. <para>Make the installed library writable so debugging symbols can
  62. be removed later:</para>
  63. <screen><userinput remap="install">chmod -v u+w /tools/lib/libtcl&tcl-major-version;.so</userinput></screen>
  64. <para>Install Tcl's headers. The next package, Expect, requires them
  65. to build.</para>
  66. <screen><userinput remap="install">make install-private-headers</userinput></screen>
  67. <para>Now make a necessary symbolic link:</para>
  68. <screen><userinput remap="install">ln -sv tclsh&tcl-major-version; /tools/bin/tclsh</userinput></screen>
  69. </sect2>
  70. <sect2 id="contents-tcl" role="content">
  71. <title>Contents of Tcl-core</title>
  72. <segmentedlist>
  73. <segtitle>Installed programs</segtitle>
  74. <segtitle>Installed library</segtitle>
  75. <seglistitem>
  76. <seg>tclsh (link to tclsh&tcl-major-version;) and tclsh&tcl-major-version;</seg>
  77. <seg>libtcl&tcl-major-version;.so, libtclstub&tcl-major-version;.a</seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  82. <?dbfo list-presentation="list"?>
  83. <?dbhtml list-presentation="table"?>
  84. <varlistentry id="tclsh&tcl-major-version;">
  85. <term><command>tclsh&tcl-major-version;</command></term>
  86. <listitem>
  87. <para>The Tcl command shell</para>
  88. <indexterm zone="ch-tools-tcl tclsh&tcl-major-version;">
  89. <primary sortas="b-tclsh&tcl-major-version;">tclsh&tcl-major-version;</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="tclsh">
  94. <term><command>tclsh</command></term>
  95. <listitem>
  96. <para>A link to tclsh&tcl-major-version;</para>
  97. <indexterm zone="ch-tools-tcl tclsh">
  98. <primary sortas="b-tclsh">tclsh</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="libtcl&tcl-major-version;.so">
  103. <term><filename class="libraryfile">libtcl&tcl-major-version;.so</filename></term>
  104. <listitem>
  105. <para>The Tcl library</para>
  106. <indexterm zone="ch-tools-tcl libtcl&tcl-major-version;.so">
  107. <primary sortas="c-libtcl&tcl-major-version;.so">libtcl&tcl-major-version;.so</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="libtclstub&tcl-major-version;.a">
  112. <term><filename class="libraryfile">libtclstub&tcl-major-version;.a</filename></term>
  113. <listitem>
  114. <para>The Tcl Stub library</para>
  115. <indexterm zone="ch-tools-tcl libtclstub&tcl-major-version;.a">
  116. <primary sortas="c-libtclstub&tcl-major-version;.a">libtclstub&tcl-major-version;.a</primary>
  117. </indexterm>
  118. </listitem>
  119. </varlistentry>
  120. </variablelist>
  121. </sect2>
  122. </sect1>