[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">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[81fd230] | 6 | <sect1 id="ch-tools-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/>
|
---|
[81fd230] | 13 | <para>The Tcl package contains the Tool Command Language.</para>
|
---|
[5888299] | 14 |
|
---|
[9652249] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
[fc1024a] | 18 | <seglistitem><seg>0.9 SBU</seg><seg>23.3 MB</seg></seglistitem>
|
---|
[9652249] | 19 | </segmentedlist>
|
---|
[bc82645e] | 20 |
|
---|
[81fd230] | 21 | <segmentedlist>
|
---|
[45992ae] | 22 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 24 | GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
| 26 |
|
---|
[9652249] | 27 | </sect2>
|
---|
[73aedd1d] | 28 |
|
---|
[9652249] | 29 | <sect2 role="installation">
|
---|
[73aedd1d] | 30 | <title>Installation of Tcl</title>
|
---|
| 31 |
|
---|
[81fd230] | 32 | <para>This package and the next two (Expect and DejaGNU) are
|
---|
| 33 | installed to support running the test suites for GCC and Binutils.
|
---|
| 34 | Installing three packages for testing purposes may seem excessive, but
|
---|
| 35 | it is very reassuring, if not essential, to know that the most
|
---|
| 36 | important tools are working properly. Even if the test suites are not
|
---|
| 37 | run in this chapter (they are not mandatory), these packages
|
---|
| 38 | are required to run the test suites in <xref
|
---|
| 39 | linkend="chapter-building-system"/>.</para>
|
---|
| 40 |
|
---|
[d27a27b] | 41 | <para>Prepare Tcl for compilation:</para>
|
---|
[73aedd1d] | 42 |
|
---|
| 43 | <screen><userinput>cd unix
|
---|
| 44 | ./configure --prefix=/tools</userinput></screen>
|
---|
| 45 |
|
---|
| 46 | <para>Build the package:</para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput>make</userinput></screen>
|
---|
| 49 |
|
---|
[81fd230] | 50 | <para>To test the results, issue: <userinput>TZ=UTC make
|
---|
| 51 | test</userinput>. The Tcl test suite is known to experience failures
|
---|
| 52 | under certain host conditions that are not fully understood.
|
---|
| 53 | Therefore, test suite failures here are not surprising, and are not
|
---|
| 54 | considered critical. The <parameter>TZ=UTC</parameter> parameter sets
|
---|
| 55 | the time zone to Coordinated Universal Time (UTC), also known as
|
---|
| 56 | Greenwich Mean Time (GMT), but only for the duration of the test suite
|
---|
| 57 | run. This ensures that the clock tests are exercised correctly.
|
---|
| 58 | Details on the <envar>TZ</envar> environment variable is provided in
|
---|
| 59 | <xref linkend="chapter-bootscripts"/>.</para>
|
---|
[73aedd1d] | 60 |
|
---|
| 61 | <para>Install the package:</para>
|
---|
| 62 |
|
---|
| 63 | <screen><userinput>make install</userinput></screen>
|
---|
| 64 |
|
---|
[81fd230] | 65 | <warning><para><emphasis>Do not</emphasis> remove the
|
---|
[574b0ea] | 66 | <filename class="directory">tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
[f4993cf] | 67 | will need its internal headers.</para></warning>
|
---|
| 68 |
|
---|
[19711e7] | 69 | <para>Set a variable containing the full path of the current directory.
|
---|
| 70 | The next package, Expect, will use this variable to find Tcl's headers.</para>
|
---|
| 71 |
|
---|
| 72 | <screen><userinput>cd ..
|
---|
| 73 | export TCLPATH=`pwd`</userinput></screen>
|
---|
| 74 |
|
---|
[673b0d8] | 75 | <para>Now make a necessary symbolic link:</para>
|
---|
[73aedd1d] | 76 |
|
---|
| 77 | <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
| 78 |
|
---|
[0b5096ca] | 79 | <beginpage/>
|
---|
| 80 |
|
---|
[73aedd1d] | 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 |
|
---|