[519ee45] | 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-tools-tcl" role="wrap">
|
---|
| 9 | <?dbhtml filename="tcl.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Tcl-&tcl-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-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>&buildtime;</segtitle>
|
---|
| 24 | <segtitle>&diskspace;</segtitle>
|
---|
| 25 |
|
---|
| 26 | <seglistitem>
|
---|
| 27 | <seg>&tcl-ch5-sbu;</seg>
|
---|
| 28 | <seg>&tcl-ch5-du;</seg>
|
---|
| 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
| 31 |
|
---|
| 32 | </sect2>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="installation">
|
---|
| 35 | <title>Installation of Tcl</title>
|
---|
| 36 |
|
---|
| 37 | <para>This package and the next two (Expect and DejaGNU) are installed
|
---|
| 38 | to support running the test suites for GCC and Binutils. Installing
|
---|
| 39 | three packages for testing purposes may seem excessive, but it is very
|
---|
| 40 | reassuring, if not essential, to know that the most important tools are
|
---|
| 41 | working properly. Even if the test suites are not run in this chapter
|
---|
| 42 | (they are not mandatory), these packages are required to run the test
|
---|
| 43 | suites in <xref linkend="chapter-building-system"/>.</para>
|
---|
| 44 |
|
---|
| 45 | <para>Prepare Tcl for compilation:</para>
|
---|
| 46 |
|
---|
| 47 | <screen><userinput>cd unix
|
---|
| 48 | ./configure --prefix=/tools</userinput></screen>
|
---|
| 49 |
|
---|
| 50 | <para>Build the package:</para>
|
---|
| 51 |
|
---|
| 52 | <screen><userinput>make</userinput></screen>
|
---|
| 53 |
|
---|
| 54 | <para>To test the results, issue: <userinput>TZ=UTC make test</userinput>.
|
---|
| 55 | The Tcl test suite is known to experience failures under certain host
|
---|
| 56 | conditions that are not fully understood. Therefore, test suite failures
|
---|
| 57 | here are not surprising, and are not considered critical. The
|
---|
| 58 | <parameter>TZ=UTC</parameter> parameter sets the time zone to Coordinated
|
---|
| 59 | Universal Time (UTC), also known as Greenwich Mean Time (GMT), but only
|
---|
| 60 | for the duration of the test suite run. This ensures that the clock tests
|
---|
| 61 | are exercised correctly. Details on the <envar>TZ</envar> environment
|
---|
| 62 | variable are provided in <xref linkend="chapter-bootscripts"/>.</para>
|
---|
| 63 |
|
---|
| 64 | <para>Install the package:</para>
|
---|
| 65 |
|
---|
| 66 | <screen><userinput>make install</userinput></screen>
|
---|
| 67 |
|
---|
| 68 | <para>Install Tcl's headers. The next package, Expect, requires them
|
---|
| 69 | to build.</para>
|
---|
| 70 |
|
---|
| 71 | <screen><userinput>make install-private-headers</userinput></screen>
|
---|
| 72 |
|
---|
| 73 | <para>Now make a necessary symbolic link:</para>
|
---|
| 74 |
|
---|
| 75 | <screen><userinput>ln -sv tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
| 76 |
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2 id="contents-tcl" role="content">
|
---|
| 80 | <title>Contents of Tcl</title>
|
---|
| 81 |
|
---|
| 82 | <segmentedlist>
|
---|
| 83 | <segtitle>Installed programs</segtitle>
|
---|
| 84 | <segtitle>Installed library</segtitle>
|
---|
| 85 |
|
---|
| 86 | <seglistitem>
|
---|
| 87 | <seg>tclsh (link to tclsh8.4) and tclsh8.4</seg>
|
---|
| 88 | <seg>libtcl8.4.so</seg>
|
---|
| 89 | </seglistitem>
|
---|
| 90 | </segmentedlist>
|
---|
| 91 |
|
---|
| 92 | <variablelist>
|
---|
| 93 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 94 | <?dbfo list-presentation="list"?>
|
---|
| 95 | <?dbhtml list-presentation="table"?>
|
---|
| 96 |
|
---|
| 97 | <varlistentry id="tclsh8.4">
|
---|
| 98 | <term><command>tclsh8.4</command></term>
|
---|
| 99 | <listitem>
|
---|
| 100 | <para>The Tcl command shell</para>
|
---|
| 101 | <indexterm zone="ch-tools-tcl tclsh8.4">
|
---|
| 102 | <primary sortas="b-tclsh8.4">tclsh8.4</primary>
|
---|
| 103 | </indexterm>
|
---|
| 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 |
|
---|
| 107 | <varlistentry id="tclsh">
|
---|
| 108 | <term><command>tclsh</command></term>
|
---|
| 109 | <listitem>
|
---|
| 110 | <para>A link to tclsh8.4</para>
|
---|
| 111 | <indexterm zone="ch-tools-tcl tclsh">
|
---|
| 112 | <primary sortas="b-tclsh">tclsh</primary>
|
---|
| 113 | </indexterm>
|
---|
| 114 | </listitem>
|
---|
| 115 | </varlistentry>
|
---|
| 116 |
|
---|
| 117 | <varlistentry id="libtcl8.4.so">
|
---|
| 118 | <term><filename class="libraryfile">libtcl8.4.so</filename></term>
|
---|
| 119 | <listitem>
|
---|
| 120 | <para>The Tcl library</para>
|
---|
| 121 | <indexterm zone="ch-tools-tcl libtcl8.4.so">
|
---|
| 122 | <primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary>
|
---|
| 123 | </indexterm>
|
---|
| 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
| 126 |
|
---|
| 127 | </variablelist>
|
---|
| 128 |
|
---|
| 129 | </sect2>
|
---|
| 130 |
|
---|
| 131 | </sect1>
|
---|