2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-01-22 13:13:52 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect1 id="ch-tools-tcl" role="wrap">
|
2006-01-22 13:13:52 +00:00
|
|
|
<?dbhtml filename="tcl.html"?>
|
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>tcl</productname>
|
|
|
|
<productnumber>&tcl-version;</productnumber>
|
|
|
|
<address>&tcl-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
<title>Tcl-&tcl-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-tools-tcl">
|
|
|
|
<primary sortas="a-Tcl">Tcl</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
<para>The Tcl package contains the Tool Command Language.</para>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
<seglistitem>
|
2006-05-14 21:16:56 +01:00
|
|
|
<seg>&tcl-ch5-sbu;</seg>
|
|
|
|
<seg>&tcl-ch5-du;</seg>
|
2006-01-22 13:13:52 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
</sect2>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Tcl</title>
|
|
|
|
|
|
|
|
<para>This package and the next two (Expect and DejaGNU) are installed
|
|
|
|
to support running the test suites for GCC and Binutils. Installing
|
|
|
|
three packages for testing purposes may seem excessive, but it is very
|
|
|
|
reassuring, if not essential, to know that the most important tools are
|
|
|
|
working properly. Even if the test suites are not run in this chapter
|
|
|
|
(they are not mandatory), these packages are required to run the test
|
|
|
|
suites in <xref linkend="chapter-building-system"/>.</para>
|
|
|
|
|
|
|
|
<para>Prepare Tcl for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="configure">cd unix
|
2006-05-02 18:16:36 +01:00
|
|
|
./configure --prefix=/tools</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
<para>Build the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2008-11-06 05:23:09 +00:00
|
|
|
<para>Compilation is now complete. As discussed earlier, running the test
|
|
|
|
suite is not mandatory for the temporary tools here in this chapter. To run
|
|
|
|
the Tcl test suite anyway, issue the following command:</para>
|
2007-09-18 22:11:00 +01:00
|
|
|
|
|
|
|
<screen><userinput remap="test">TZ=UTC make test</userinput></screen>
|
|
|
|
|
2008-11-05 21:44:06 +00:00
|
|
|
<para>The Tcl test suite may experience failures under certain host
|
2006-01-22 13:13:52 +00:00
|
|
|
conditions that are not fully understood. Therefore, test suite failures
|
|
|
|
here are not surprising, and are not considered critical. The
|
|
|
|
<parameter>TZ=UTC</parameter> parameter sets the time zone to Coordinated
|
|
|
|
Universal Time (UTC), also known as Greenwich Mean Time (GMT), but only
|
|
|
|
for the duration of the test suite run. This ensures that the clock tests
|
|
|
|
are exercised correctly. Details on the <envar>TZ</envar> environment
|
|
|
|
variable are provided in <xref linkend="chapter-bootscripts"/>.</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
<para>Install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2008-10-27 07:23:19 +00:00
|
|
|
<para>Make the installed library writable so debugging symbols can
|
|
|
|
be removed later:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="install">chmod -v u+w /tools/lib/libtcl8.5.so</userinput></screen>
|
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
<para>Install Tcl's headers. The next package, Expect, requires them
|
|
|
|
to build.</para>
|
2004-01-12 23:24:06 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">make install-private-headers</userinput></screen>
|
2005-06-23 21:57:13 +01:00
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
<para>Now make a necessary symbolic link:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2008-10-05 19:17:30 +01:00
|
|
|
<screen><userinput remap="install">ln -sv tclsh8.5 /tools/bin/tclsh</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="contents-tcl" role="content">
|
|
|
|
<title>Contents of Tcl</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed programs</segtitle>
|
|
|
|
<segtitle>Installed library</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2008-10-05 19:17:30 +01:00
|
|
|
<seg>tclsh (link to tclsh8.5) and tclsh8.5</seg>
|
2009-07-26 20:17:51 +01:00
|
|
|
<seg>libtcl8.5.so, libtclstub8.5.a</seg>
|
2006-01-22 13:13:52 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2008-10-05 19:17:30 +01:00
|
|
|
<varlistentry id="tclsh8.5">
|
|
|
|
<term><command>tclsh8.5</command></term>
|
2006-01-22 13:13:52 +00:00
|
|
|
<listitem>
|
|
|
|
<para>The Tcl command shell</para>
|
2008-10-05 19:17:30 +01:00
|
|
|
<indexterm zone="ch-tools-tcl tclsh8.5">
|
2009-09-24 20:29:25 +01:00
|
|
|
<primary sortas="b-tclsh8.5">tclsh8.5</primary>
|
2006-01-22 13:13:52 +00:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="tclsh">
|
|
|
|
<term><command>tclsh</command></term>
|
|
|
|
<listitem>
|
2008-10-05 19:17:30 +01:00
|
|
|
<para>A link to tclsh8.5</para>
|
2006-01-22 13:13:52 +00:00
|
|
|
<indexterm zone="ch-tools-tcl tclsh">
|
|
|
|
<primary sortas="b-tclsh">tclsh</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2008-10-05 19:17:30 +01:00
|
|
|
<varlistentry id="libtcl8.5.so">
|
|
|
|
<term><filename class="libraryfile">libtcl8.5.so</filename></term>
|
2006-01-22 13:13:52 +00:00
|
|
|
<listitem>
|
|
|
|
<para>The Tcl library</para>
|
2008-10-05 19:17:30 +01:00
|
|
|
<indexterm zone="ch-tools-tcl libtcl8.5.so">
|
|
|
|
<primary sortas="c-libtcl8.5.so">libtcl8.5.so</primary>
|
2006-01-22 13:13:52 +00:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2009-07-26 20:17:51 +01:00
|
|
|
<varlistentry id="libtclstub8.5.a">
|
|
|
|
<term><filename class="libraryfile">libtclstub8.5.a</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>The Tcl Stub library</para>
|
|
|
|
<indexterm zone="ch-tools-tcl libtclstub8.5.a">
|
|
|
|
<primary sortas="c-libtclstub8.5.a">libtclstub8.5.a</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-01-22 13:13:52 +00:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect1>
|