[673b0d8] | 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 | ]>
|
---|
[9652249] | 6 | <sect1 id="ch-tools-tcl" xreflabel="Tcl" role="wrap">
|
---|
[673b0d8] | 7 | <title>Tcl-&tcl-version;</title>
|
---|
| 8 | <?dbhtml filename="tcl.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-tools-tcl"><primary sortas="a-Tcl">Tcl</primary></indexterm>
|
---|
[bc82645e] | 11 |
|
---|
[9652249] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Tcl package contains the Tool Command Language.</para>
|
---|
| 14 |
|
---|
[9652249] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
| 18 | <seglistitem><seg>0.9 SBU</seg><seg>23 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
[bc82645e] | 20 |
|
---|
[9652249] | 21 | <segmentedlist>
|
---|
| 22 | <segtitle>Tcl installation depends on</segtitle>
|
---|
| 23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
[69993f4] | 24 | GCC, Glibc, Grep, Make and Sed</seg></seglistitem>
|
---|
[9652249] | 25 | </segmentedlist>
|
---|
[73aedd1d] | 26 |
|
---|
[9652249] | 27 | </sect2>
|
---|
[73aedd1d] | 28 |
|
---|
[9652249] | 29 | <sect2 role="installation">
|
---|
[73aedd1d] | 30 | <title>Installation of Tcl</title>
|
---|
| 31 |
|
---|
[6e41459] | 32 | <para>This package and the next two (Expect and DejaGNU)
|
---|
| 33 | are
|
---|
| 34 | installed to support running the test suites for GCC and Binutils.
|
---|
| 35 | Installing three packages for testing purposes may seem excessive, but
|
---|
| 36 | it is very reassuring, if not essential, to know that the most
|
---|
| 37 | important tools are working properly. Even if the test suites are not
|
---|
| 38 | run in this chapter (we recommend not running them), these packages
|
---|
[69993f4] | 39 | are required to run the test suites in <xref
|
---|
[6e41459] | 40 | linkend="chapter-building-system"/>.</para>
|
---|
[73aedd1d] | 41 |
|
---|
[d27a27b] | 42 | <para>Prepare Tcl for compilation:</para>
|
---|
[73aedd1d] | 43 |
|
---|
| 44 | <screen><userinput>cd unix
|
---|
| 45 | ./configure --prefix=/tools</userinput></screen>
|
---|
| 46 |
|
---|
| 47 | <para>Build the package:</para>
|
---|
| 48 |
|
---|
| 49 | <screen><userinput>make</userinput></screen>
|
---|
| 50 |
|
---|
[6e41459] | 51 | <para>To test the results, issue: <userinput>TZ=UTC make
|
---|
[69993f4] | 52 | test</userinput>. The Tcl test suite is known to experience failures
|
---|
| 53 | under certain host conditions that are not fully understood.
|
---|
| 54 | Therefore, test suite failures here are not surprising, and are not
|
---|
| 55 | considered critical. The <parameter>TZ=UTC</parameter> parameter sets
|
---|
| 56 | the time zone to Coordinated Universal Time (UTC), also known as
|
---|
| 57 | Greenwich Mean Time (GMT), but only for the duration of the test suite
|
---|
| 58 | run. This ensures that the clock tests are exercised correctly. More
|
---|
| 59 | information on the TZ environment variable is provided in <xref
|
---|
[6e41459] | 60 | linkend="chapter-bootscripts"/>.</para>
|
---|
[73aedd1d] | 61 |
|
---|
| 62 | <para>Install the package:</para>
|
---|
| 63 |
|
---|
| 64 | <screen><userinput>make install</userinput></screen>
|
---|
| 65 |
|
---|
[6e41459] | 66 | <warning><para><emphasis>Do not</emphasis> remove the
|
---|
[574b0ea] | 67 | <filename class="directory">tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
[f4993cf] | 68 | will need its internal headers.</para></warning>
|
---|
| 69 |
|
---|
[673b0d8] | 70 | <para>Now make a necessary symbolic link:</para>
|
---|
[73aedd1d] | 71 |
|
---|
| 72 | <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
| 73 |
|
---|
| 74 | </sect2>
|
---|
[bc82645e] | 75 |
|
---|
[9652249] | 76 | <sect2 id="contents-tcl" role="content"><title>Contents of Tcl</title>
|
---|
[5888299] | 77 |
|
---|
[9652249] | 78 | <segmentedlist>
|
---|
| 79 | <segtitle>Installed programs</segtitle>
|
---|
| 80 | <segtitle>Installed library</segtitle>
|
---|
[69993f4] | 81 | <seglistitem><seg>tclsh (link to tclsh8.4) and tclsh8.4</seg><seg>libtcl8.4.so</seg></seglistitem>
|
---|
[9652249] | 82 | </segmentedlist>
|
---|
[673b0d8] | 83 |
|
---|
[3ed279f] | 84 | <variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
|
---|
| 85 | <?dbfo list-presentation="list"?>
|
---|
[673b0d8] | 86 |
|
---|
[b8a819f] | 87 | <varlistentry id="tclsh8.4">
|
---|
| 88 | <term><command>tclsh8.4</command></term>
|
---|
[9652249] | 89 | <listitem>
|
---|
[6e41459] | 90 | <para>the Tcl command shell.</para>
|
---|
[3ed279f] | 91 | <indexterm zone="ch-tools-tcl tclsh8.4"><primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
|
---|
[9652249] | 92 | </listitem>
|
---|
| 93 | </varlistentry>
|
---|
[673b0d8] | 94 |
|
---|
[69993f4] | 95 | <varlistentry id="tclsh">
|
---|
| 96 | <term><command>tclsh</command></term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>link to tclsh8.4</para>
|
---|
| 99 | <indexterm zone="ch-tools-tcl tclsh"><primary sortas="b-tclsh">tclsh</primary></indexterm>
|
---|
| 100 | </listitem>
|
---|
| 101 | </varlistentry>
|
---|
| 102 |
|
---|
[b8a819f] | 103 | <varlistentry id="libtcl8.4.so">
|
---|
[e63529b] | 104 | <term><filename class="libraryfile">libtcl8.4.so</filename></term>
|
---|
[9652249] | 105 | <listitem>
|
---|
[6e41459] | 106 | <para>the Tcl library.</para>
|
---|
[3ed279f] | 107 | <indexterm zone="ch-tools-tcl libtcl8.4.so"><primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary></indexterm>
|
---|
[9652249] | 108 | </listitem>
|
---|
| 109 | </varlistentry>
|
---|
| 110 | </variablelist>
|
---|
[673b0d8] | 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | </sect1>
|
---|
[6e41459] | 115 |
|
---|