[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[b28fd35] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-tools-tcl" role="wrap">
|
---|
[b28fd35] | 9 | <?dbhtml filename="tcl.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>tcl</productname>
|
---|
| 13 | <productnumber>&tcl-version;</productnumber>
|
---|
| 14 | <address>&tcl-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[b28fd35] | 17 | <title>Tcl-&tcl-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-tools-tcl">
|
---|
| 20 | <primary sortas="a-Tcl">Tcl</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[673b0d8] | 25 |
|
---|
[b28fd35] | 26 | <para>The Tcl package contains the Tool Command Language.</para>
|
---|
[bc82645e] | 27 |
|
---|
[b28fd35] | 28 | <segmentedlist>
|
---|
| 29 | <segtitle>&buildtime;</segtitle>
|
---|
| 30 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 31 |
|
---|
[b28fd35] | 32 | <seglistitem>
|
---|
[e4a5635] | 33 | <seg>&tcl-ch5-sbu;</seg>
|
---|
| 34 | <seg>&tcl-ch5-du;</seg>
|
---|
[b28fd35] | 35 | </seglistitem>
|
---|
| 36 | </segmentedlist>
|
---|
[bc82645e] | 37 |
|
---|
[b28fd35] | 38 | </sect2>
|
---|
[73aedd1d] | 39 |
|
---|
[b28fd35] | 40 | <sect2 role="installation">
|
---|
| 41 | <title>Installation of Tcl</title>
|
---|
| 42 |
|
---|
[ee321a46] | 43 | <para>This package and the next three (Expect, DejaGNU, and Check) are
|
---|
| 44 | installed to support running the test suites for GCC and Binutils and other
|
---|
| 45 | packages. Installing four packages for testing purposes may seem
|
---|
| 46 | excessive, but it is very reassuring, if not essential, to know that the
|
---|
| 47 | most important tools are working properly. Even if the test suites are not
|
---|
| 48 | run in this chapter (they are not mandatory), these packages are required
|
---|
| 49 | to run the test suites in <xref linkend="chapter-building-system"/>.</para>
|
---|
[b28fd35] | 50 |
|
---|
| 51 | <para>Prepare Tcl for compilation:</para>
|
---|
[73aedd1d] | 52 |
|
---|
[0445a3d] | 53 | <screen><userinput remap="configure">cd unix
|
---|
[2f3d595] | 54 | ./configure --prefix=/tools</userinput></screen>
|
---|
[73aedd1d] | 55 |
|
---|
[b28fd35] | 56 | <para>Build the package:</para>
|
---|
[73aedd1d] | 57 |
|
---|
[0445a3d] | 58 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 59 |
|
---|
[a91be49] | 60 | <para>Compilation is now complete. As discussed earlier, running the test
|
---|
| 61 | suite is not mandatory for the temporary tools here in this chapter. To run
|
---|
| 62 | the Tcl test suite anyway, issue the following command:</para>
|
---|
[0445a3d] | 63 |
|
---|
| 64 | <screen><userinput remap="test">TZ=UTC make test</userinput></screen>
|
---|
| 65 |
|
---|
[1fa0f19] | 66 | <para>The Tcl test suite may experience failures under certain host
|
---|
[b28fd35] | 67 | conditions that are not fully understood. Therefore, test suite failures
|
---|
| 68 | here are not surprising, and are not considered critical. The
|
---|
| 69 | <parameter>TZ=UTC</parameter> parameter sets the time zone to Coordinated
|
---|
| 70 | Universal Time (UTC), also known as Greenwich Mean Time (GMT), but only
|
---|
| 71 | for the duration of the test suite run. This ensures that the clock tests
|
---|
| 72 | are exercised correctly. Details on the <envar>TZ</envar> environment
|
---|
| 73 | variable are provided in <xref linkend="chapter-bootscripts"/>.</para>
|
---|
[73aedd1d] | 74 |
|
---|
[b28fd35] | 75 | <para>Install the package:</para>
|
---|
[73aedd1d] | 76 |
|
---|
[0445a3d] | 77 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 78 |
|
---|
[bdd7f27] | 79 | <para>Make the installed library writable so debugging symbols can
|
---|
| 80 | be removed later:</para>
|
---|
| 81 |
|
---|
[3c4a472] | 82 | <screen><userinput remap="install">chmod -v u+w /tools/lib/libtcl&tcl-major-version;.so</userinput></screen>
|
---|
[bdd7f27] | 83 |
|
---|
[b28fd35] | 84 | <para>Install Tcl's headers. The next package, Expect, requires them
|
---|
| 85 | to build.</para>
|
---|
[f4993cf] | 86 |
|
---|
[0445a3d] | 87 | <screen><userinput remap="install">make install-private-headers</userinput></screen>
|
---|
[e0ef857] | 88 |
|
---|
[b28fd35] | 89 | <para>Now make a necessary symbolic link:</para>
|
---|
[73aedd1d] | 90 |
|
---|
[3c4a472] | 91 | <screen><userinput remap="install">ln -sv tclsh&tcl-major-version; /tools/bin/tclsh</userinput></screen>
|
---|
[73aedd1d] | 92 |
|
---|
[b28fd35] | 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 id="contents-tcl" role="content">
|
---|
| 96 | <title>Contents of Tcl</title>
|
---|
| 97 |
|
---|
| 98 | <segmentedlist>
|
---|
| 99 | <segtitle>Installed programs</segtitle>
|
---|
| 100 | <segtitle>Installed library</segtitle>
|
---|
| 101 |
|
---|
| 102 | <seglistitem>
|
---|
[f0332af] | 103 | <seg>tclsh (link to tclsh&tcl-major-version;) and tclsh&tcl-major-version;</seg>
|
---|
| 104 | <seg>libtcl&tcl-major-version;.so, libtclstub&tcl-major-version;.a</seg>
|
---|
[b28fd35] | 105 | </seglistitem>
|
---|
| 106 | </segmentedlist>
|
---|
| 107 |
|
---|
| 108 | <variablelist>
|
---|
| 109 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 110 | <?dbfo list-presentation="list"?>
|
---|
| 111 | <?dbhtml list-presentation="table"?>
|
---|
| 112 |
|
---|
[f0332af] | 113 | <varlistentry id="tclsh&tcl-major-version;">
|
---|
| 114 | <term><command>tclsh&tcl-major-version;</command></term>
|
---|
[b28fd35] | 115 | <listitem>
|
---|
| 116 | <para>The Tcl command shell</para>
|
---|
[f0332af] | 117 | <indexterm zone="ch-tools-tcl tclsh&tcl-major-version;">
|
---|
| 118 | <primary sortas="b-tclsh&tcl-major-version;">tclsh&tcl-major-version;</primary>
|
---|
[b28fd35] | 119 | </indexterm>
|
---|
| 120 | </listitem>
|
---|
| 121 | </varlistentry>
|
---|
| 122 |
|
---|
| 123 | <varlistentry id="tclsh">
|
---|
| 124 | <term><command>tclsh</command></term>
|
---|
| 125 | <listitem>
|
---|
[f0332af] | 126 | <para>A link to tclsh&tcl-major-version;</para>
|
---|
[b28fd35] | 127 | <indexterm zone="ch-tools-tcl tclsh">
|
---|
| 128 | <primary sortas="b-tclsh">tclsh</primary>
|
---|
| 129 | </indexterm>
|
---|
| 130 | </listitem>
|
---|
| 131 | </varlistentry>
|
---|
| 132 |
|
---|
[f0332af] | 133 | <varlistentry id="libtcl&tcl-major-version;.so">
|
---|
| 134 | <term><filename class="libraryfile">libtcl&tcl-major-version;.so</filename></term>
|
---|
[b28fd35] | 135 | <listitem>
|
---|
| 136 | <para>The Tcl library</para>
|
---|
[f0332af] | 137 | <indexterm zone="ch-tools-tcl libtcl&tcl-major-version;.so">
|
---|
| 138 | <primary sortas="c-libtcl&tcl-major-version;.so">libtcl&tcl-major-version;.so</primary>
|
---|
[b28fd35] | 139 | </indexterm>
|
---|
| 140 | </listitem>
|
---|
| 141 | </varlistentry>
|
---|
| 142 |
|
---|
[f0332af] | 143 | <varlistentry id="libtclstub&tcl-major-version;.a">
|
---|
| 144 | <term><filename class="libraryfile">libtclstub&tcl-major-version;.a</filename></term>
|
---|
[f1994dc] | 145 | <listitem>
|
---|
| 146 | <para>The Tcl Stub library</para>
|
---|
[f0332af] | 147 | <indexterm zone="ch-tools-tcl libtclstub&tcl-major-version;.a">
|
---|
| 148 | <primary sortas="c-libtclstub&tcl-major-version;.a">libtclstub&tcl-major-version;.a</primary>
|
---|
[f1994dc] | 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 |
|
---|
[b28fd35] | 153 | </variablelist>
|
---|
| 154 |
|
---|
| 155 | </sect2>
|
---|
[673b0d8] | 156 |
|
---|
| 157 | </sect1>
|
---|