123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-tools-tcl" role="wrap">
- <?dbhtml filename="tcl.html"?>
- <sect1info condition="script">
- <productname>tcl</productname>
- <productnumber>&tcl-version;</productnumber>
- <address>&tcl-url;</address>
- </sect1info>
- <title>Tcl-&tcl-version;</title>
- <indexterm zone="ch-tools-tcl">
- <primary sortas="a-Tcl">Tcl</primary>
- </indexterm>
- <sect2 role="package">
- <title/>
- <para>The Tcl package contains the Tool Command Language.</para>
- <segmentedlist>
- <segtitle>&buildtime;</segtitle>
- <segtitle>&diskspace;</segtitle>
- <seglistitem>
- <seg>&tcl-ch5-sbu;</seg>
- <seg>&tcl-ch5-du;</seg>
- </seglistitem>
- </segmentedlist>
- </sect2>
- <sect2 role="installation">
- <title>Installation of Tcl</title>
- <para>This package and the next three (Expect, DejaGNU, and Check) are
- installed to support running the test suites for GCC and Binutils and other
- packages. Installing four 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>
- <screen><userinput remap="configure">cd unix
- ./configure --prefix=/tools</userinput></screen>
- <para>Build the package:</para>
- <screen><userinput remap="make">make</userinput></screen>
- <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>
- <screen><userinput remap="test">TZ=UTC make test</userinput></screen>
- <para>The Tcl test suite may experience failures under certain host
- 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>
- <para>Install the package:</para>
- <screen><userinput remap="install">make install</userinput></screen>
- <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>
- <para>Install Tcl's headers. The next package, Expect, requires them
- to build.</para>
- <screen><userinput remap="install">make install-private-headers</userinput></screen>
- <para>Now make a necessary symbolic link:</para>
- <screen><userinput remap="install">ln -sv tclsh8.5 /tools/bin/tclsh</userinput></screen>
- </sect2>
- <sect2 id="contents-tcl" role="content">
- <title>Contents of Tcl</title>
- <segmentedlist>
- <segtitle>Installed programs</segtitle>
- <segtitle>Installed library</segtitle>
- <seglistitem>
- <seg>tclsh (link to tclsh8.5) and tclsh8.5</seg>
- <seg>libtcl8.5.so, libtclstub8.5.a</seg>
- </seglistitem>
- </segmentedlist>
- <variablelist>
- <bridgehead renderas="sect3">Short Descriptions</bridgehead>
- <?dbfo list-presentation="list"?>
- <?dbhtml list-presentation="table"?>
- <varlistentry id="tclsh8.5">
- <term><command>tclsh8.5</command></term>
- <listitem>
- <para>The Tcl command shell</para>
- <indexterm zone="ch-tools-tcl tclsh8.5">
- <primary sortas="b-tclsh8.5">tclsh8.5</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="tclsh">
- <term><command>tclsh</command></term>
- <listitem>
- <para>A link to tclsh8.5</para>
- <indexterm zone="ch-tools-tcl tclsh">
- <primary sortas="b-tclsh">tclsh</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libtcl8.5.so">
- <term><filename class="libraryfile">libtcl8.5.so</filename></term>
- <listitem>
- <para>The Tcl library</para>
- <indexterm zone="ch-tools-tcl libtcl8.5.so">
- <primary sortas="c-libtcl8.5.so">libtcl8.5.so</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <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>
- </variablelist>
- </sect2>
- </sect1>
|