1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="ch-tools-tcl" role="wrap">
|
---|
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>
|
---|
11 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
13 | <para>The Tcl package contains the Tool Command Language.</para>
|
---|
14 |
|
---|
15 | <segmentedlist>
|
---|
16 | <segtitle>&buildtime;</segtitle>
|
---|
17 | <segtitle>&diskspace;</segtitle>
|
---|
18 | <seglistitem><seg>0.9 SBU</seg><seg>23.3 MB</seg></seglistitem>
|
---|
19 | </segmentedlist>
|
---|
20 |
|
---|
21 | <segmentedlist>
|
---|
22 | <segtitle>&dependencies;</segtitle>
|
---|
23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
24 | GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
|
---|
25 | </segmentedlist>
|
---|
26 |
|
---|
27 | </sect2>
|
---|
28 |
|
---|
29 | <sect2 role="installation">
|
---|
30 | <title>Installation of Tcl</title>
|
---|
31 |
|
---|
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 |
|
---|
41 | <para>Prepare Tcl for compilation:</para>
|
---|
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 |
|
---|
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 are provided in
|
---|
59 | <xref linkend="chapter-bootscripts"/>.</para>
|
---|
60 |
|
---|
61 | <para>Install the package:</para>
|
---|
62 |
|
---|
63 | <screen><userinput>make install</userinput></screen>
|
---|
64 |
|
---|
65 | <warning><para><emphasis>Do not</emphasis> remove the
|
---|
66 | <filename class="directory">tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
67 | will need its internal headers.</para></warning>
|
---|
68 |
|
---|
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 |
|
---|
75 | <para>Now make a necessary symbolic link:</para>
|
---|
76 |
|
---|
77 | <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
78 |
|
---|
79 | <beginpage/>
|
---|
80 |
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2 id="contents-tcl" role="content"><title>Contents of Tcl</title>
|
---|
84 |
|
---|
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"?>
|
---|
93 | <?dbhtml list-presentation="table"?>
|
---|
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>
|
---|
119 |
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | </sect1>
|
---|
123 |
|
---|