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