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 MB</seg></seglistitem>
|
---|
19 | </segmentedlist>
|
---|
20 |
|
---|
21 | <segmentedlist>
|
---|
22 | <segtitle>Tcl installation depends on</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 is 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 |
|
---|
66 | <warning><para><emphasis>Do not</emphasis> remove the
|
---|
67 | <filename class="directory">tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
68 | will need its internal headers.</para></warning>
|
---|
69 |
|
---|
70 | <para>Now make a necessary symbolic link:</para>
|
---|
71 |
|
---|
72 | <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
73 |
|
---|
74 | </sect2>
|
---|
75 |
|
---|
76 | <sect2 id="contents-tcl" role="content"><title>Contents of Tcl</title>
|
---|
77 |
|
---|
78 | <segmentedlist>
|
---|
79 | <segtitle>Installed programs</segtitle>
|
---|
80 | <segtitle>Installed library</segtitle>
|
---|
81 | <seglistitem><seg>tclsh (link to tclsh8.4) and tclsh8.4</seg><seg>libtcl8.4.so</seg></seglistitem>
|
---|
82 | </segmentedlist>
|
---|
83 |
|
---|
84 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
85 | <?dbfo list-presentation="list"?>
|
---|
86 |
|
---|
87 | <varlistentry id="tclsh8.4">
|
---|
88 | <term><command>tclsh8.4</command></term>
|
---|
89 | <listitem>
|
---|
90 | <para>The Tcl command shell</para>
|
---|
91 | <indexterm zone="ch-tools-tcl tclsh8.4"><primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
|
---|
92 | </listitem>
|
---|
93 | </varlistentry>
|
---|
94 |
|
---|
95 | <varlistentry id="tclsh">
|
---|
96 | <term><command>tclsh</command></term>
|
---|
97 | <listitem>
|
---|
98 | <para>A link to tclsh8.4</para>
|
---|
99 | <indexterm zone="ch-tools-tcl tclsh"><primary sortas="b-tclsh">tclsh</primary></indexterm>
|
---|
100 | </listitem>
|
---|
101 | </varlistentry>
|
---|
102 |
|
---|
103 | <varlistentry id="libtcl8.4.so">
|
---|
104 | <term><filename class="libraryfile">libtcl8.4.so</filename></term>
|
---|
105 | <listitem>
|
---|
106 | <para>The Tcl library</para>
|
---|
107 | <indexterm zone="ch-tools-tcl libtcl8.4.so"><primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary></indexterm>
|
---|
108 | </listitem>
|
---|
109 | </varlistentry>
|
---|
110 | </variablelist>
|
---|
111 |
|
---|
112 | </sect2>
|
---|
113 |
|
---|
114 | </sect1>
|
---|
115 |
|
---|