| 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="c1">First, fix a syntax error in the configure script.</para> | 
|---|
| 45 |  | 
|---|
| 46 | <screen os="c2"><userinput>cd unix | 
|---|
| 47 | sed -i "s/relid'/relid/" configure</userinput></screen> | 
|---|
| 48 |  | 
|---|
| 49 | <para os="b">Prepare Tcl for compilation:</para> | 
|---|
| 50 |  | 
|---|
| 51 | <screen><userinput>./configure --prefix=/tools</userinput></screen> | 
|---|
| 52 |  | 
|---|
| 53 | <para os="d">Build the package:</para> | 
|---|
| 54 |  | 
|---|
| 55 | <screen os="e"><userinput>make</userinput></screen> | 
|---|
| 56 |  | 
|---|
| 57 | <para os="g">Install the package:</para> | 
|---|
| 58 |  | 
|---|
| 59 | <screen os="h"><userinput>make install</userinput></screen> | 
|---|
| 60 |  | 
|---|
| 61 | <para os="i">Now we will install the TCL headers into /tools.</para> | 
|---|
| 62 |  | 
|---|
| 63 | <screen os="j"><userinput>make install-private-headers</userinput></screen> | 
|---|
| 64 |  | 
|---|
| 65 | <para os="k">Now make a necessary symbolic link:</para> | 
|---|
| 66 |  | 
|---|
| 67 | <screen os="l"><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen> | 
|---|
| 68 |  | 
|---|
| 69 | </sect2> | 
|---|
| 70 |  | 
|---|
| 71 | <sect2 id="contents-tcl" role="content"> | 
|---|
| 72 | <title>Contents of Tcl</title> | 
|---|
| 73 |  | 
|---|
| 74 | <segmentedlist> | 
|---|
| 75 | <segtitle>Installed programs</segtitle> | 
|---|
| 76 | <segtitle>Installed library</segtitle> | 
|---|
| 77 |  | 
|---|
| 78 | <seglistitem> | 
|---|
| 79 | <seg>tclsh (link to tclsh8.4) and tclsh8.4</seg> | 
|---|
| 80 | <seg>libtcl8.4.so</seg> | 
|---|
| 81 | </seglistitem> | 
|---|
| 82 | </segmentedlist> | 
|---|
| 83 |  | 
|---|
| 84 | <variablelist> | 
|---|
| 85 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> | 
|---|
| 86 | <?dbfo list-presentation="list"?> | 
|---|
| 87 | <?dbhtml list-presentation="table"?> | 
|---|
| 88 |  | 
|---|
| 89 | <varlistentry id="tclsh8.4"> | 
|---|
| 90 | <term><command>tclsh8.4</command></term> | 
|---|
| 91 | <listitem> | 
|---|
| 92 | <para>The Tcl command shell</para> | 
|---|
| 93 | <indexterm zone="ch-temp-tools-tcl tclsh8.4"> | 
|---|
| 94 | <primary sortas="b-tclsh8.4">tclsh8.4</primary> | 
|---|
| 95 | </indexterm> | 
|---|
| 96 | </listitem> | 
|---|
| 97 | </varlistentry> | 
|---|
| 98 |  | 
|---|
| 99 | <varlistentry id="tclsh"> | 
|---|
| 100 | <term><command>tclsh</command></term> | 
|---|
| 101 | <listitem> | 
|---|
| 102 | <para>A link to tclsh8.4</para> | 
|---|
| 103 | <indexterm zone="ch-temp-tools-tcl tclsh"> | 
|---|
| 104 | <primary sortas="b-tclsh">tclsh</primary> | 
|---|
| 105 | </indexterm> | 
|---|
| 106 | </listitem> | 
|---|
| 107 | </varlistentry> | 
|---|
| 108 |  | 
|---|
| 109 | <varlistentry id="libtcl8.4.so"> | 
|---|
| 110 | <term><filename class="libraryfile">libtcl8.4.so</filename></term> | 
|---|
| 111 | <listitem> | 
|---|
| 112 | <para>The Tcl library</para> | 
|---|
| 113 | <indexterm zone="ch-temp-tools-tcl libtcl8.4.so"> | 
|---|
| 114 | <primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary> | 
|---|
| 115 | </indexterm> | 
|---|
| 116 | </listitem> | 
|---|
| 117 | </varlistentry> | 
|---|
| 118 |  | 
|---|
| 119 | </variablelist> | 
|---|
| 120 |  | 
|---|
| 121 | </sect2> | 
|---|
| 122 |  | 
|---|
| 123 | </sect1> | 
|---|