2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2005-05-06 04:35:01 +08:00
|
|
|
<!ENTITY tcl-download-http "http://prdownloads.sourceforge.net/tcl/tcl&tcl-version;-src.tar.gz">
|
2006-03-27 04:13:16 +08:00
|
|
|
<!ENTITY tcl-download-ftp " ">
|
2006-04-29 22:17:21 +08:00
|
|
|
<!-- <!ENTITY tcl-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tcl&tcl-version;-src.tar.gz"> -->
|
|
|
|
<!ENTITY tcl-md5sum "c6b655ad5db095ee73227113220c0523">
|
2006-03-27 04:13:16 +08:00
|
|
|
<!ENTITY tcl-size "3.5 MB">
|
2006-04-29 22:17:21 +08:00
|
|
|
<!ENTITY tcl-buildsize "24.6 MB">
|
|
|
|
<!ENTITY tcl-time "0.3 SBU (additional 0.8 SBU to run the test suite)">
|
|
|
|
<!-- Ensure this is updated when Tcl moves to the 8.5.x branch -->
|
|
|
|
<!ENTITY tcl-ver "8.4">
|
|
|
|
<!-- Ensure the above is updated when Tcl moves to the 8.5.x branch -->
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2003-10-05 18:00:31 +08:00
|
|
|
<sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
2005-05-06 04:35:01 +08:00
|
|
|
<?dbhtml filename="tcl.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2005-12-03 03:19:41 +08:00
|
|
|
<keywordset>
|
|
|
|
<keyword role="package">tcl&tcl-version;-src.tar</keyword>
|
2005-12-09 04:34:05 +08:00
|
|
|
<keyword role="ftpdir">tcl</keyword>
|
2005-12-03 03:19:41 +08:00
|
|
|
</keywordset>
|
2005-05-06 04:35:01 +08:00
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Tcl-&tcl-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="tcl">
|
|
|
|
<primary sortas="a-Tcl">Tcl</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Tcl</title>
|
|
|
|
|
2005-05-31 05:38:32 +08:00
|
|
|
<para>The <application>Tcl</application> package contains the Tool Command
|
2005-05-06 04:35:01 +08:00
|
|
|
Language, a robust general-purpose scripting language.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&tcl-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&tcl-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &tcl-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &tcl-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &tcl-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &tcl-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/tcl"/></para>
|
|
|
|
|
2005-05-06 04:35:01 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Tcl</title>
|
|
|
|
|
|
|
|
<note>
|
2005-07-15 00:26:40 +08:00
|
|
|
<para>This package is also installed in LFS during the bootstrap phase.
|
2006-03-27 04:13:16 +08:00
|
|
|
As it is not installed during Chapter 6 of LFS, installation instructions
|
|
|
|
are included here in BLFS.</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
</note>
|
|
|
|
|
2005-05-31 05:38:32 +08:00
|
|
|
<para>Install <application>Tcl</application> by running the following
|
2005-05-06 04:35:01 +08:00
|
|
|
commands:</para>
|
|
|
|
|
2006-04-29 22:17:21 +08:00
|
|
|
<screen><userinput>cd unix &&
|
2004-10-14 12:18:18 +08:00
|
|
|
./configure --prefix=/usr --enable-threads &&
|
2004-06-13 06:56:28 +08:00
|
|
|
make &&
|
2006-04-29 22:17:21 +08:00
|
|
|
sed -i -e "s:${PWD}:/usr/lib:" \
|
|
|
|
-e "s:$(dirname ${PWD}):/usr/include/tcl&tcl-ver;:" \
|
|
|
|
-e "/TCL_LIB_FILE/ s:':\":g" \
|
|
|
|
tclConfig.sh</userinput></screen>
|
2005-01-31 07:01:56 +08:00
|
|
|
|
2005-05-06 04:35:01 +08:00
|
|
|
<para>To test the results, issue: <command>make test</command>.</para>
|
2005-04-17 10:55:09 +08:00
|
|
|
|
2005-05-06 04:35:01 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
2005-01-31 07:01:56 +08:00
|
|
|
|
2005-05-06 04:35:01 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2006-04-29 22:17:21 +08:00
|
|
|
install -v -d /usr/include/tcl&tcl-ver;/{unix,generic} &&
|
|
|
|
install -v -m644 *.h /usr/include/tcl&tcl-ver;/unix/ &&
|
|
|
|
install -v -m644 ../generic/*.h /usr/include/tcl&tcl-ver;/generic/ &&
|
|
|
|
rm -v -f /usr/include/tcl&tcl-ver;/generic/tcl{,{,Plat}Decls}.h &&
|
|
|
|
ln -v -nsf ../../include/tcl&tcl-ver; /usr/lib/tcl&tcl-ver;/include &&
|
|
|
|
ln -v -sf libtcl&tcl-ver;.so /usr/lib/libtcl.so &&
|
|
|
|
ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</userinput></screen>
|
2005-01-31 07:01:56 +08:00
|
|
|
|
2005-05-06 04:35:01 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para><parameter>--enable-threads</parameter>: This switch forces the package
|
|
|
|
to build with thread support.</para>
|
|
|
|
|
2005-12-25 04:09:19 +08:00
|
|
|
<para><command>sed -i -e ... tclConfig.sh</command>: The
|
2006-04-29 22:17:21 +08:00
|
|
|
<application>Tcl</application> package expects that its source tree is
|
|
|
|
preserved so that packages depending on it for their compilation
|
|
|
|
can utilize it. This <command>sed</command> removes the references to the
|
|
|
|
build directory and replaces them with saner system-wide locations.</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
|
|
|
|
<para><command>install ...</command>: These commands install the internal
|
|
|
|
headers into a system-wide location.</para>
|
|
|
|
|
|
|
|
<para><command>ln -v -sf ...</command>: These commands create compatibility
|
|
|
|
symbolic links.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2006-04-29 22:17:21 +08:00
|
|
|
<seg>tclsh and tclsh&tcl-ver;</seg>
|
|
|
|
<seg>libtcl.so and libtclstub&tcl-ver;.a</seg>
|
|
|
|
<seg>/usr/include/tcl&tcl-ver; and /usr/lib/tcl&tcl-ver;</seg>
|
2005-05-06 04:35:01 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="tclsh">
|
|
|
|
<term><command>tclsh</command></term>
|
|
|
|
<listitem>
|
2006-04-29 22:17:21 +08:00
|
|
|
<para> is a symlink to the <command>tclsh&tcl-ver;</command>
|
2005-05-06 04:35:01 +08:00
|
|
|
program.</para>
|
|
|
|
<indexterm zone="tcl tclsh">
|
|
|
|
<primary sortas="g-tclsh">tclsh</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-04-29 22:17:21 +08:00
|
|
|
<varlistentry id="tclsh-eight">
|
|
|
|
<term><command>tclsh&tcl-ver;</command></term>
|
2005-05-06 04:35:01 +08:00
|
|
|
<listitem>
|
|
|
|
<para> is a simple shell containing the
|
|
|
|
<application>Tcl</application> interpreter.</para>
|
2006-04-29 22:17:21 +08:00
|
|
|
<indexterm zone="tcl tclsh-eight">
|
|
|
|
<primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
|
2005-05-06 04:35:01 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libtcl">
|
|
|
|
<term><filename role="library">libtcl.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>contains the API functions required
|
|
|
|
by <application>Tcl</application>.</para>
|
|
|
|
<indexterm zone="tcl libtcl">
|
|
|
|
<primary sortas="c-libtcl">libtcl.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2003-09-21 23:07:05 +08:00
|
|
|
|
|
|
|
</sect1>
|