[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>
|
---|
[fad7667] | 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 |
|
---|
[2475534] | 41 | <para>Tcl's configure script has a syntax error:</para>
|
---|
| 42 | <screen><userinput>cd unix
|
---|
[646a184] | 43 | cp -v configure{,.orig}
|
---|
[2f302b0] | 44 | sed "s/relid'/relid/" configure.orig > configure</userinput></screen>
|
---|
[2475534] | 45 |
|
---|
[d27a27b] | 46 | <para>Prepare Tcl for compilation:</para>
|
---|
[73aedd1d] | 47 |
|
---|
[2475534] | 48 | <screen><userinput>./configure --prefix=/tools</userinput></screen>
|
---|
[73aedd1d] | 49 |
|
---|
| 50 | <para>Build the package:</para>
|
---|
| 51 |
|
---|
| 52 | <screen><userinput>make</userinput></screen>
|
---|
| 53 |
|
---|
[8c68add] | 54 | <para>To test the results, issue: <userinput>TZ=UTC make test</userinput>.
|
---|
| 55 | The Tcl test suite is known to experience failures
|
---|
[81fd230] | 56 | under certain host conditions that are not fully understood.
|
---|
| 57 | Therefore, test suite failures here are not surprising, and are not
|
---|
| 58 | considered critical. The <parameter>TZ=UTC</parameter> parameter sets
|
---|
| 59 | the time zone to Coordinated Universal Time (UTC), also known as
|
---|
| 60 | Greenwich Mean Time (GMT), but only for the duration of the test suite
|
---|
| 61 | run. This ensures that the clock tests are exercised correctly.
|
---|
[663ecfc] | 62 | Details on the <envar>TZ</envar> environment variable are provided in
|
---|
[81fd230] | 63 | <xref linkend="chapter-bootscripts"/>.</para>
|
---|
[73aedd1d] | 64 |
|
---|
| 65 | <para>Install the package:</para>
|
---|
| 66 |
|
---|
| 67 | <screen><userinput>make install</userinput></screen>
|
---|
| 68 |
|
---|
[a71ef08] | 69 | <para>Install Tcl's headers. The next package, Expect, requires them to build.</para>
|
---|
[f4993cf] | 70 |
|
---|
[a71ef08] | 71 | <screen><userinput>make install-private-headers</userinput></screen>
|
---|
[e0ef857] | 72 |
|
---|
[673b0d8] | 73 | <para>Now make a necessary symbolic link:</para>
|
---|
[73aedd1d] | 74 |
|
---|
[5998892] | 75 | <screen><userinput>ln -sv tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
[73aedd1d] | 76 |
|
---|
| 77 | </sect2>
|
---|
[bc82645e] | 78 |
|
---|
[9652249] | 79 | <sect2 id="contents-tcl" role="content"><title>Contents of Tcl</title>
|
---|
[5888299] | 80 |
|
---|
[81fd230] | 81 | <segmentedlist>
|
---|
| 82 | <segtitle>Installed programs</segtitle>
|
---|
| 83 | <segtitle>Installed library</segtitle>
|
---|
| 84 | <seglistitem><seg>tclsh (link to tclsh8.4) and tclsh8.4</seg><seg>libtcl8.4.so</seg></seglistitem>
|
---|
| 85 | </segmentedlist>
|
---|
| 86 |
|
---|
| 87 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 88 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 89 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 90 |
|
---|
| 91 | <varlistentry id="tclsh8.4">
|
---|
| 92 | <term><command>tclsh8.4</command></term>
|
---|
| 93 | <listitem>
|
---|
| 94 | <para>The Tcl command shell</para>
|
---|
| 95 | <indexterm zone="ch-tools-tcl tclsh8.4"><primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
|
---|
| 96 | </listitem>
|
---|
| 97 | </varlistentry>
|
---|
| 98 |
|
---|
| 99 | <varlistentry id="tclsh">
|
---|
| 100 | <term><command>tclsh</command></term>
|
---|
| 101 | <listitem>
|
---|
| 102 | <para>A link to tclsh8.4</para>
|
---|
| 103 | <indexterm zone="ch-tools-tcl tclsh"><primary sortas="b-tclsh">tclsh</primary></indexterm>
|
---|
| 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 |
|
---|
| 107 | <varlistentry id="libtcl8.4.so">
|
---|
| 108 | <term><filename class="libraryfile">libtcl8.4.so</filename></term>
|
---|
| 109 | <listitem>
|
---|
| 110 | <para>The Tcl library</para>
|
---|
| 111 | <indexterm zone="ch-tools-tcl libtcl8.4.so"><primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary></indexterm>
|
---|
| 112 | </listitem>
|
---|
| 113 | </varlistentry>
|
---|
| 114 | </variablelist>
|
---|
[673b0d8] | 115 |
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | </sect1>
|
---|
[81fd230] | 119 |
|
---|