[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
[3e36a78] | 4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
[673b0d8] | 5 | %general-entities;
|
---|
[3e36a78] | 6 | %patches-entities;
|
---|
[673b0d8] | 7 | ]>
|
---|
[81fd230] | 8 | <sect1 id="ch-tools-tcl" role="wrap">
|
---|
[673b0d8] | 9 | <title>Tcl-&tcl-version;</title>
|
---|
| 10 | <?dbhtml filename="tcl.html"?>
|
---|
| 11 |
|
---|
| 12 | <indexterm zone="ch-tools-tcl"><primary sortas="a-Tcl">Tcl</primary></indexterm>
|
---|
[bc82645e] | 13 |
|
---|
[9652249] | 14 | <sect2 role="package"><title/>
|
---|
[81fd230] | 15 | <para>The Tcl package contains the Tool Command Language.</para>
|
---|
[5888299] | 16 |
|
---|
[9652249] | 17 | <segmentedlist>
|
---|
| 18 | <segtitle>&buildtime;</segtitle>
|
---|
| 19 | <segtitle>&diskspace;</segtitle>
|
---|
[fad7667] | 20 | <seglistitem><seg>0.9 SBU</seg><seg>23.3 MB</seg></seglistitem>
|
---|
[9652249] | 21 | </segmentedlist>
|
---|
[bc82645e] | 22 |
|
---|
[81fd230] | 23 | <segmentedlist>
|
---|
[45992ae] | 24 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 25 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 26 | GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
|
---|
| 27 | </segmentedlist>
|
---|
| 28 |
|
---|
[9652249] | 29 | </sect2>
|
---|
[73aedd1d] | 30 |
|
---|
[9652249] | 31 | <sect2 role="installation">
|
---|
[73aedd1d] | 32 | <title>Installation of Tcl</title>
|
---|
| 33 |
|
---|
[81fd230] | 34 | <para>This package and the next two (Expect and DejaGNU) are
|
---|
| 35 | installed to support running the test suites for GCC and Binutils.
|
---|
| 36 | Installing three packages for testing purposes may seem excessive, but
|
---|
| 37 | it is very reassuring, if not essential, to know that the most
|
---|
| 38 | important tools are working properly. Even if the test suites are not
|
---|
| 39 | run in this chapter (they are not mandatory), these packages
|
---|
| 40 | are required to run the test suites in <xref
|
---|
| 41 | linkend="chapter-building-system"/>.</para>
|
---|
| 42 |
|
---|
[d27a27b] | 43 | <para>Prepare Tcl for compilation:</para>
|
---|
[73aedd1d] | 44 |
|
---|
| 45 | <screen><userinput>cd unix
|
---|
| 46 | ./configure --prefix=/tools</userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <para>Build the package:</para>
|
---|
| 49 |
|
---|
| 50 | <screen><userinput>make</userinput></screen>
|
---|
| 51 |
|
---|
[8c68add] | 52 | <para>To test the results, issue: <userinput>TZ=UTC make test</userinput>.
|
---|
| 53 | The Tcl test suite is known to experience failures
|
---|
[81fd230] | 54 | under certain host conditions that are not fully understood.
|
---|
| 55 | Therefore, test suite failures here are not surprising, and are not
|
---|
| 56 | considered critical. The <parameter>TZ=UTC</parameter> parameter sets
|
---|
| 57 | the time zone to Coordinated Universal Time (UTC), also known as
|
---|
| 58 | Greenwich Mean Time (GMT), but only for the duration of the test suite
|
---|
| 59 | run. This ensures that the clock tests are exercised correctly.
|
---|
[663ecfc] | 60 | Details on the <envar>TZ</envar> environment variable are provided in
|
---|
[81fd230] | 61 | <xref linkend="chapter-bootscripts"/>.</para>
|
---|
[73aedd1d] | 62 |
|
---|
| 63 | <para>Install the package:</para>
|
---|
| 64 |
|
---|
| 65 | <screen><userinput>make install</userinput></screen>
|
---|
| 66 |
|
---|
[81fd230] | 67 | <warning><para><emphasis>Do not</emphasis> remove the
|
---|
[574b0ea] | 68 | <filename class="directory">tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
[f4993cf] | 69 | will need its internal headers.</para></warning>
|
---|
| 70 |
|
---|
[e0ef857] | 71 | <para>Set a variable containing the full path of the current directory.
|
---|
| 72 | The next package, Expect, will use this variable to find Tcl's headers.</para>
|
---|
| 73 |
|
---|
[6614263] | 74 | <screen><userinput>cd ..
|
---|
| 75 | export TCLPATH=`pwd`</userinput></screen>
|
---|
[e0ef857] | 76 |
|
---|
[673b0d8] | 77 | <para>Now make a necessary symbolic link:</para>
|
---|
[73aedd1d] | 78 |
|
---|
[5998892] | 79 | <screen><userinput>ln -sv tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
[73aedd1d] | 80 |
|
---|
| 81 | </sect2>
|
---|
[bc82645e] | 82 |
|
---|
[9652249] | 83 | <sect2 id="contents-tcl" role="content"><title>Contents of Tcl</title>
|
---|
[5888299] | 84 |
|
---|
[81fd230] | 85 | <segmentedlist>
|
---|
| 86 | <segtitle>Installed programs</segtitle>
|
---|
| 87 | <segtitle>Installed library</segtitle>
|
---|
| 88 | <seglistitem><seg>tclsh (link to tclsh8.4) and tclsh8.4</seg><seg>libtcl8.4.so</seg></seglistitem>
|
---|
| 89 | </segmentedlist>
|
---|
| 90 |
|
---|
| 91 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 92 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 93 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 94 |
|
---|
| 95 | <varlistentry id="tclsh8.4">
|
---|
| 96 | <term><command>tclsh8.4</command></term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>The Tcl command shell</para>
|
---|
| 99 | <indexterm zone="ch-tools-tcl tclsh8.4"><primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
|
---|
| 100 | </listitem>
|
---|
| 101 | </varlistentry>
|
---|
| 102 |
|
---|
| 103 | <varlistentry id="tclsh">
|
---|
| 104 | <term><command>tclsh</command></term>
|
---|
| 105 | <listitem>
|
---|
| 106 | <para>A link to tclsh8.4</para>
|
---|
| 107 | <indexterm zone="ch-tools-tcl tclsh"><primary sortas="b-tclsh">tclsh</primary></indexterm>
|
---|
| 108 | </listitem>
|
---|
| 109 | </varlistentry>
|
---|
| 110 |
|
---|
| 111 | <varlistentry id="libtcl8.4.so">
|
---|
| 112 | <term><filename class="libraryfile">libtcl8.4.so</filename></term>
|
---|
| 113 | <listitem>
|
---|
| 114 | <para>The Tcl library</para>
|
---|
| 115 | <indexterm zone="ch-tools-tcl libtcl8.4.so"><primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary></indexterm>
|
---|
| 116 | </listitem>
|
---|
| 117 | </varlistentry>
|
---|
| 118 | </variablelist>
|
---|
[673b0d8] | 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | </sect1>
|
---|
[81fd230] | 123 |
|
---|