| 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><userinput>cd unix | 
|---|
| 47 | ./configure --prefix=/tools</userinput></screen> | 
|---|
| 48 |  | 
|---|
| 49 | <para os="c">Build the package:</para> | 
|---|
| 50 |  | 
|---|
| 51 | <screen os="d"><userinput>make</userinput></screen> | 
|---|
| 52 |  | 
|---|
| 53 | <para os="e">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="f">Install the package:</para> | 
|---|
| 65 |  | 
|---|
| 66 | <screen os="g"><userinput>make install</userinput></screen> | 
|---|
| 67 |  | 
|---|
| 68 | <warning os="h"> | 
|---|
| 69 | <para><emphasis>Do not</emphasis> remove the <filename | 
|---|
| 70 | class="directory">tcl&tcl-version;</filename> source directory yet, | 
|---|
| 71 | as the next package will need its internal headers.</para> | 
|---|
| 72 | </warning> | 
|---|
| 73 |  | 
|---|
| 74 | <para os="i">Set a variable containing the full path of the current directory. | 
|---|
| 75 | The next package, Expect, will use this variable to find Tcl's headers.</para> | 
|---|
| 76 |  | 
|---|
| 77 | <screen os="j"><userinput>cd .. | 
|---|
| 78 | export TCLPATH=`pwd`</userinput></screen> | 
|---|
| 79 |  | 
|---|
| 80 | <para os="k">Now make a necessary symbolic link:</para> | 
|---|
| 81 |  | 
|---|
| 82 | <screen os="l"><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen> | 
|---|
| 83 |  | 
|---|
| 84 | </sect2> | 
|---|
| 85 |  | 
|---|
| 86 | <sect2 id="contents-tcl" role="content"> | 
|---|
| 87 | <title>Contents of Tcl</title> | 
|---|
| 88 |  | 
|---|
| 89 | <segmentedlist> | 
|---|
| 90 | <segtitle>Installed programs</segtitle> | 
|---|
| 91 | <segtitle>Installed library</segtitle> | 
|---|
| 92 |  | 
|---|
| 93 | <seglistitem> | 
|---|
| 94 | <seg>tclsh (link to tclsh8.4) and tclsh8.4</seg> | 
|---|
| 95 | <seg>libtcl8.4.so</seg> | 
|---|
| 96 | </seglistitem> | 
|---|
| 97 | </segmentedlist> | 
|---|
| 98 |  | 
|---|
| 99 | <variablelist> | 
|---|
| 100 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> | 
|---|
| 101 | <?dbfo list-presentation="list"?> | 
|---|
| 102 | <?dbhtml list-presentation="table"?> | 
|---|
| 103 |  | 
|---|
| 104 | <varlistentry id="tclsh8.4"> | 
|---|
| 105 | <term><command>tclsh8.4</command></term> | 
|---|
| 106 | <listitem> | 
|---|
| 107 | <para>The Tcl command shell</para> | 
|---|
| 108 | <indexterm zone="ch-temp-tools-tcl tclsh8.4"> | 
|---|
| 109 | <primary sortas="b-tclsh8.4">tclsh8.4</primary> | 
|---|
| 110 | </indexterm> | 
|---|
| 111 | </listitem> | 
|---|
| 112 | </varlistentry> | 
|---|
| 113 |  | 
|---|
| 114 | <varlistentry id="tclsh"> | 
|---|
| 115 | <term><command>tclsh</command></term> | 
|---|
| 116 | <listitem> | 
|---|
| 117 | <para>A link to tclsh8.4</para> | 
|---|
| 118 | <indexterm zone="ch-temp-tools-tcl tclsh"> | 
|---|
| 119 | <primary sortas="b-tclsh">tclsh</primary> | 
|---|
| 120 | </indexterm> | 
|---|
| 121 | </listitem> | 
|---|
| 122 | </varlistentry> | 
|---|
| 123 |  | 
|---|
| 124 | <varlistentry id="libtcl8.4.so"> | 
|---|
| 125 | <term><filename class="libraryfile">libtcl8.4.so</filename></term> | 
|---|
| 126 | <listitem> | 
|---|
| 127 | <para>The Tcl library</para> | 
|---|
| 128 | <indexterm zone="ch-temp-tools-tcl libtcl8.4.so"> | 
|---|
| 129 | <primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary> | 
|---|
| 130 | </indexterm> | 
|---|
| 131 | </listitem> | 
|---|
| 132 | </varlistentry> | 
|---|
| 133 |  | 
|---|
| 134 | </variablelist> | 
|---|
| 135 |  | 
|---|
| 136 | </sect2> | 
|---|
| 137 |  | 
|---|
| 138 | </sect1> | 
|---|