[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[b28fd35] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-tools-tcl" role="wrap">
|
---|
[b28fd35] | 9 | <?dbhtml filename="tcl.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
[1e96cc1] | 12 | <productname>tcl</productname>
|
---|
[e747759] | 13 | <productnumber>&tcl-version;</productnumber>
|
---|
| 14 | <address>&tcl-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[1e96cc1] | 17 | <title>Tcl-&tcl-version;</title>
|
---|
[b28fd35] | 18 |
|
---|
| 19 | <indexterm zone="ch-tools-tcl">
|
---|
[1e96cc1] | 20 | <primary sortas="a-Tcl">Tcl</primary>
|
---|
[b28fd35] | 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[673b0d8] | 25 |
|
---|
[b28fd35] | 26 | <para>The Tcl package contains the Tool Command Language.</para>
|
---|
[bc82645e] | 27 |
|
---|
[b28fd35] | 28 | <segmentedlist>
|
---|
| 29 | <segtitle>&buildtime;</segtitle>
|
---|
| 30 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 31 |
|
---|
[b28fd35] | 32 | <seglistitem>
|
---|
[e4a5635] | 33 | <seg>&tcl-ch5-sbu;</seg>
|
---|
| 34 | <seg>&tcl-ch5-du;</seg>
|
---|
[b28fd35] | 35 | </seglistitem>
|
---|
| 36 | </segmentedlist>
|
---|
[bc82645e] | 37 |
|
---|
[b28fd35] | 38 | </sect2>
|
---|
[73aedd1d] | 39 |
|
---|
[b28fd35] | 40 | <sect2 role="installation">
|
---|
[1e96cc1] | 41 | <title>Installation of Tcl</title>
|
---|
[b28fd35] | 42 |
|
---|
[e97454f] | 43 | <para>This package and the next two (Expect and DejaGNU) are
|
---|
[ee321a46] | 44 | installed to support running the test suites for GCC and Binutils and other
|
---|
[1059bade] | 45 | packages. Installing three packages for testing purposes may seem
|
---|
[ee321a46] | 46 | excessive, but it is very reassuring, if not essential, to know that the
|
---|
| 47 | most important tools are working properly. Even if the test suites are not
|
---|
| 48 | run in this chapter (they are not mandatory), these packages are required
|
---|
| 49 | to run the test suites in <xref linkend="chapter-building-system"/>.</para>
|
---|
[b28fd35] | 50 |
|
---|
[ac57a48] | 51 | <para>Note that the Tcl package used here is a minimal version needed
|
---|
| 52 | to run the LFS tests. For the full package, see the
|
---|
| 53 | <ulink url='&blfs-book;general/tcl.html'>BLFS Tcl procedures</ulink>.</para>
|
---|
| 54 |
|
---|
[b28fd35] | 55 | <para>Prepare Tcl for compilation:</para>
|
---|
[73aedd1d] | 56 |
|
---|
[0445a3d] | 57 | <screen><userinput remap="configure">cd unix
|
---|
[2f3d595] | 58 | ./configure --prefix=/tools</userinput></screen>
|
---|
[73aedd1d] | 59 |
|
---|
[b28fd35] | 60 | <para>Build the package:</para>
|
---|
[73aedd1d] | 61 |
|
---|
[0445a3d] | 62 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 63 |
|
---|
[a91be49] | 64 | <para>Compilation is now complete. As discussed earlier, running the test
|
---|
| 65 | suite is not mandatory for the temporary tools here in this chapter. To run
|
---|
| 66 | the Tcl test suite anyway, issue the following command:</para>
|
---|
[0445a3d] | 67 |
|
---|
| 68 | <screen><userinput remap="test">TZ=UTC make test</userinput></screen>
|
---|
| 69 |
|
---|
[1fa0f19] | 70 | <para>The Tcl test suite may experience failures under certain host
|
---|
[b28fd35] | 71 | conditions that are not fully understood. Therefore, test suite failures
|
---|
| 72 | here are not surprising, and are not considered critical. The
|
---|
| 73 | <parameter>TZ=UTC</parameter> parameter sets the time zone to Coordinated
|
---|
[8a961f6] | 74 | Universal Time (UTC), but only
|
---|
[b28fd35] | 75 | for the duration of the test suite run. This ensures that the clock tests
|
---|
| 76 | are exercised correctly. Details on the <envar>TZ</envar> environment
|
---|
| 77 | variable are provided in <xref linkend="chapter-bootscripts"/>.</para>
|
---|
[73aedd1d] | 78 |
|
---|
[b28fd35] | 79 | <para>Install the package:</para>
|
---|
[73aedd1d] | 80 |
|
---|
[0445a3d] | 81 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 82 |
|
---|
[bdd7f27] | 83 | <para>Make the installed library writable so debugging symbols can
|
---|
| 84 | be removed later:</para>
|
---|
| 85 |
|
---|
[3c4a472] | 86 | <screen><userinput remap="install">chmod -v u+w /tools/lib/libtcl&tcl-major-version;.so</userinput></screen>
|
---|
[bdd7f27] | 87 |
|
---|
[b28fd35] | 88 | <para>Install Tcl's headers. The next package, Expect, requires them
|
---|
| 89 | to build.</para>
|
---|
[f4993cf] | 90 |
|
---|
[0445a3d] | 91 | <screen><userinput remap="install">make install-private-headers</userinput></screen>
|
---|
[e0ef857] | 92 |
|
---|
[b28fd35] | 93 | <para>Now make a necessary symbolic link:</para>
|
---|
[73aedd1d] | 94 |
|
---|
[3c4a472] | 95 | <screen><userinput remap="install">ln -sv tclsh&tcl-major-version; /tools/bin/tclsh</userinput></screen>
|
---|
[73aedd1d] | 96 |
|
---|
[b28fd35] | 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 id="contents-tcl" role="content">
|
---|
[1e96cc1] | 100 | <title>Contents of Tcl</title>
|
---|
[b28fd35] | 101 |
|
---|
| 102 | <segmentedlist>
|
---|
| 103 | <segtitle>Installed programs</segtitle>
|
---|
| 104 | <segtitle>Installed library</segtitle>
|
---|
| 105 |
|
---|
| 106 | <seglistitem>
|
---|
[f0332af] | 107 | <seg>tclsh (link to tclsh&tcl-major-version;) and tclsh&tcl-major-version;</seg>
|
---|
| 108 | <seg>libtcl&tcl-major-version;.so, libtclstub&tcl-major-version;.a</seg>
|
---|
[b28fd35] | 109 | </seglistitem>
|
---|
| 110 | </segmentedlist>
|
---|
| 111 |
|
---|
| 112 | <variablelist>
|
---|
| 113 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 114 | <?dbfo list-presentation="list"?>
|
---|
| 115 | <?dbhtml list-presentation="table"?>
|
---|
| 116 |
|
---|
[f0332af] | 117 | <varlistentry id="tclsh&tcl-major-version;">
|
---|
| 118 | <term><command>tclsh&tcl-major-version;</command></term>
|
---|
[b28fd35] | 119 | <listitem>
|
---|
| 120 | <para>The Tcl command shell</para>
|
---|
[f0332af] | 121 | <indexterm zone="ch-tools-tcl tclsh&tcl-major-version;">
|
---|
| 122 | <primary sortas="b-tclsh&tcl-major-version;">tclsh&tcl-major-version;</primary>
|
---|
[b28fd35] | 123 | </indexterm>
|
---|
| 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
| 126 |
|
---|
| 127 | <varlistentry id="tclsh">
|
---|
| 128 | <term><command>tclsh</command></term>
|
---|
| 129 | <listitem>
|
---|
[f0332af] | 130 | <para>A link to tclsh&tcl-major-version;</para>
|
---|
[b28fd35] | 131 | <indexterm zone="ch-tools-tcl tclsh">
|
---|
| 132 | <primary sortas="b-tclsh">tclsh</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
| 136 |
|
---|
[f0332af] | 137 | <varlistentry id="libtcl&tcl-major-version;.so">
|
---|
| 138 | <term><filename class="libraryfile">libtcl&tcl-major-version;.so</filename></term>
|
---|
[b28fd35] | 139 | <listitem>
|
---|
| 140 | <para>The Tcl library</para>
|
---|
[f0332af] | 141 | <indexterm zone="ch-tools-tcl libtcl&tcl-major-version;.so">
|
---|
| 142 | <primary sortas="c-libtcl&tcl-major-version;.so">libtcl&tcl-major-version;.so</primary>
|
---|
[b28fd35] | 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
[f0332af] | 147 | <varlistentry id="libtclstub&tcl-major-version;.a">
|
---|
| 148 | <term><filename class="libraryfile">libtclstub&tcl-major-version;.a</filename></term>
|
---|
[f1994dc] | 149 | <listitem>
|
---|
| 150 | <para>The Tcl Stub library</para>
|
---|
[f0332af] | 151 | <indexterm zone="ch-tools-tcl libtclstub&tcl-major-version;.a">
|
---|
| 152 | <primary sortas="c-libtclstub&tcl-major-version;.a">libtclstub&tcl-major-version;.a</primary>
|
---|
[f1994dc] | 153 | </indexterm>
|
---|
| 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
| 156 |
|
---|
[b28fd35] | 157 | </variablelist>
|
---|
| 158 |
|
---|
| 159 | </sect2>
|
---|
[673b0d8] | 160 |
|
---|
| 161 | </sect1>
|
---|