[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 |
|
---|
| 43 | <para>This package and the next two (Expect and DejaGNU) are installed
|
---|
| 44 | to support running the test suites for GCC and Binutils. Installing
|
---|
| 45 | three packages for testing purposes may seem excessive, but it is very
|
---|
| 46 | reassuring, if not essential, to know that the most important tools are
|
---|
| 47 | working properly. Even if the test suites are not run in this chapter
|
---|
| 48 | (they are not mandatory), these packages are required to run the test
|
---|
| 49 | suites in <xref linkend="chapter-building-system"/>.</para>
|
---|
| 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 |
|
---|
[0445a3d] | 60 | <para>To test the results, issue:</para>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput remap="test">TZ=UTC make test</userinput></screen>
|
---|
| 63 |
|
---|
| 64 | <para>The Tcl test suite is known to experience failures under certain host
|
---|
[b28fd35] | 65 | conditions that are not fully understood. Therefore, test suite failures
|
---|
| 66 | here are not surprising, and are not considered critical. The
|
---|
| 67 | <parameter>TZ=UTC</parameter> parameter sets the time zone to Coordinated
|
---|
| 68 | Universal Time (UTC), also known as Greenwich Mean Time (GMT), but only
|
---|
| 69 | for the duration of the test suite run. This ensures that the clock tests
|
---|
| 70 | are exercised correctly. Details on the <envar>TZ</envar> environment
|
---|
| 71 | variable are provided in <xref linkend="chapter-bootscripts"/>.</para>
|
---|
[73aedd1d] | 72 |
|
---|
[b28fd35] | 73 | <para>Install the package:</para>
|
---|
[73aedd1d] | 74 |
|
---|
[0445a3d] | 75 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 76 |
|
---|
[b28fd35] | 77 | <para>Install Tcl's headers. The next package, Expect, requires them
|
---|
| 78 | to build.</para>
|
---|
[f4993cf] | 79 |
|
---|
[0445a3d] | 80 | <screen><userinput remap="install">make install-private-headers</userinput></screen>
|
---|
[e0ef857] | 81 |
|
---|
[b28fd35] | 82 | <para>Now make a necessary symbolic link:</para>
|
---|
[73aedd1d] | 83 |
|
---|
[0445a3d] | 84 | <screen><userinput remap="install">ln -sv tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
[73aedd1d] | 85 |
|
---|
[b28fd35] | 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 id="contents-tcl" role="content">
|
---|
| 89 | <title>Contents of Tcl</title>
|
---|
| 90 |
|
---|
| 91 | <segmentedlist>
|
---|
| 92 | <segtitle>Installed programs</segtitle>
|
---|
| 93 | <segtitle>Installed library</segtitle>
|
---|
| 94 |
|
---|
| 95 | <seglistitem>
|
---|
| 96 | <seg>tclsh (link to tclsh8.4) and tclsh8.4</seg>
|
---|
| 97 | <seg>libtcl8.4.so</seg>
|
---|
| 98 | </seglistitem>
|
---|
| 99 | </segmentedlist>
|
---|
| 100 |
|
---|
| 101 | <variablelist>
|
---|
| 102 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 103 | <?dbfo list-presentation="list"?>
|
---|
| 104 | <?dbhtml list-presentation="table"?>
|
---|
| 105 |
|
---|
| 106 | <varlistentry id="tclsh8.4">
|
---|
| 107 | <term><command>tclsh8.4</command></term>
|
---|
| 108 | <listitem>
|
---|
| 109 | <para>The Tcl command shell</para>
|
---|
| 110 | <indexterm zone="ch-tools-tcl tclsh8.4">
|
---|
| 111 | <primary sortas="b-tclsh8.4">tclsh8.4</primary>
|
---|
| 112 | </indexterm>
|
---|
| 113 | </listitem>
|
---|
| 114 | </varlistentry>
|
---|
| 115 |
|
---|
| 116 | <varlistentry id="tclsh">
|
---|
| 117 | <term><command>tclsh</command></term>
|
---|
| 118 | <listitem>
|
---|
| 119 | <para>A link to tclsh8.4</para>
|
---|
| 120 | <indexterm zone="ch-tools-tcl tclsh">
|
---|
| 121 | <primary sortas="b-tclsh">tclsh</primary>
|
---|
| 122 | </indexterm>
|
---|
| 123 | </listitem>
|
---|
| 124 | </varlistentry>
|
---|
| 125 |
|
---|
| 126 | <varlistentry id="libtcl8.4.so">
|
---|
| 127 | <term><filename class="libraryfile">libtcl8.4.so</filename></term>
|
---|
| 128 | <listitem>
|
---|
| 129 | <para>The Tcl library</para>
|
---|
| 130 | <indexterm zone="ch-tools-tcl libtcl8.4.so">
|
---|
| 131 | <primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary>
|
---|
| 132 | </indexterm>
|
---|
| 133 | </listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
| 136 | </variablelist>
|
---|
| 137 |
|
---|
| 138 | </sect2>
|
---|
[673b0d8] | 139 |
|
---|
| 140 | </sect1>
|
---|