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;
|
|
|
|
|
|
|
|
<!ENTITY tcl-download-http "http://prdownloads.sourceforge.net/tcl/tcl&tcl-version;-src.tar.gz">
|
|
|
|
<!ENTITY tcl-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tcl&tcl-version;-src.tar.gz">
|
2005-02-09 10:52:39 +08:00
|
|
|
<!ENTITY tcl-md5sum "7e01b409925e4eb59ad44a4c12b9c681">
|
2005-01-06 08:17:05 +08:00
|
|
|
<!ENTITY tcl-size "3.4 MB">
|
2005-03-25 11:01:11 +08:00
|
|
|
<!ENTITY tcl-buildsize "24.2 MB">
|
|
|
|
<!ENTITY tcl-time "0.28 SBU (additional 0.73 SBU to run the test suite)">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2003-10-05 18:00:31 +08:00
|
|
|
<sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
2004-08-10 12:23:09 +08:00
|
|
|
<sect1info>
|
2004-08-10 12:25:57 +08:00
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2004-08-10 12:23:09 +08:00
|
|
|
</sect1info>
|
2004-04-14 11:02:41 +08:00
|
|
|
<?dbhtml filename="tcl.html"?>
|
2003-10-05 18:00:31 +08:00
|
|
|
<title>Tcl-&tcl-version;</title>
|
2005-01-17 00:56:15 +08:00
|
|
|
<indexterm zone="tcl">
|
|
|
|
<primary sortas="a-Tcl">Tcl</primary></indexterm>
|
2003-09-21 23:07:05 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Introduction to <application>Tcl</application></title>
|
2004-07-22 08:25:29 +08:00
|
|
|
|
|
|
|
<para>The <application>Tcl</application> package contains the Tool Command
|
|
|
|
Language, a robust general-purpose scripting language.</para>
|
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<sect3><title>Package information</title>
|
|
|
|
<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>
|
2005-02-09 10:52:39 +08:00
|
|
|
<listitem><para>Download MD5 sum: &tcl-md5sum;</para></listitem>
|
2004-06-13 06:56:28 +08:00
|
|
|
<listitem><para>Download size: &tcl-size;</para></listitem>
|
2005-01-06 08:17:05 +08:00
|
|
|
<listitem><para>Estimated disk space required:
|
2004-06-13 06:56:28 +08:00
|
|
|
&tcl-buildsize;</para></listitem>
|
|
|
|
<listitem><para>Estimated build time:
|
|
|
|
&tcl-time;</para></listitem></itemizedlist>
|
|
|
|
</sect3>
|
2004-07-22 08:25:29 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of <application>Tcl</application></title>
|
2004-07-22 08:25:29 +08:00
|
|
|
|
2004-10-14 12:18:18 +08:00
|
|
|
<note><para>This package is also installed in <acronym>LFS</acronym> during
|
|
|
|
the bootstrap phase. The significant difference between the two installations
|
|
|
|
(other than installing to <filename class="directory">/usr</filename>) is the
|
|
|
|
package is installed in such a way that there is no need to keep the build
|
2004-06-13 06:56:28 +08:00
|
|
|
directory around after installation.</para></note>
|
2004-07-22 08:25:29 +08:00
|
|
|
|
|
|
|
<para>Install <application>Tcl</application> by running the following
|
|
|
|
commands:</para>
|
|
|
|
|
2005-01-31 07:01:56 +08:00
|
|
|
<screen><userinput><command>export VERSION=&tcl-version; &&
|
|
|
|
export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
|
|
|
export DIR=$PWD &&
|
2004-06-13 06:56:28 +08:00
|
|
|
cd unix &&
|
2004-10-14 12:18:18 +08:00
|
|
|
./configure --prefix=/usr --enable-threads &&
|
2004-06-13 06:56:28 +08:00
|
|
|
make &&
|
|
|
|
sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &&
|
|
|
|
sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &&
|
2005-02-02 02:29:34 +08:00
|
|
|
sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',\
|
|
|
|
TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh</command></userinput></screen>
|
2005-01-31 07:01:56 +08:00
|
|
|
|
|
|
|
<para>Now, as the root user:</para>
|
|
|
|
|
|
|
|
<screen><userinput role='root'><command>make install &&
|
2004-06-13 06:56:28 +08:00
|
|
|
install -d /usr/include/tcl${V}/unix &&
|
|
|
|
install -m644 *.h /usr/include/tcl${V}/unix/ &&
|
|
|
|
install -d /usr/include/tcl${V}/generic &&
|
|
|
|
install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
|
|
|
|
rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
|
2004-08-06 05:02:44 +08:00
|
|
|
ln -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &&
|
2004-06-13 06:56:28 +08:00
|
|
|
ln -sf libtcl${V}.so /usr/lib/libtcl.so &&
|
|
|
|
ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
|
2004-07-22 08:25:29 +08:00
|
|
|
|
2005-01-31 07:01:56 +08:00
|
|
|
<para>Clean up the unprivileged user's environment using the following
|
|
|
|
commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>unset VERSION &&
|
|
|
|
unset V &&
|
|
|
|
unset DIR</command></userinput></screen>
|
|
|
|
|
|
|
|
<!--
|
2005-01-04 12:11:47 +08:00
|
|
|
<caution><para>If you build the package as an ordinary user and then switch to
|
2004-10-14 12:18:18 +08:00
|
|
|
root to install the package, ensure you set the environment variables
|
2004-07-22 08:25:29 +08:00
|
|
|
<envar>V</envar> and <envar>VERSION</envar> before running the installation
|
2005-01-04 12:11:47 +08:00
|
|
|
commands.</para></caution>
|
2005-01-31 07:01:56 +08:00
|
|
|
-->
|
2004-07-22 08:25:29 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
2004-07-22 08:25:29 +08:00
|
|
|
|
2004-10-14 12:18:18 +08:00
|
|
|
<para><parameter>--enable-threads</parameter>: This switch forces the package
|
|
|
|
to build with thread support.</para>
|
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<para><command>sed -i ...</command>: The <application>Tcl</application>
|
2004-07-22 08:25:29 +08:00
|
|
|
package assumes that the source that is used to build
|
|
|
|
<application>Tcl</application> is always kept around for compiling packages
|
2005-01-31 07:01:56 +08:00
|
|
|
that depend on <application>Tcl</application>. These <command>sed</command>s
|
2004-07-22 08:25:29 +08:00
|
|
|
remove the reference to the build directory and replace them by saner system
|
|
|
|
wide locations.</para>
|
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<para><command>install ...</command>: These commands install the internal
|
|
|
|
headers into a system-wide location.</para>
|
2004-07-22 08:25:29 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<para><command>ln -sf ...</command>: These commands create compatibility
|
|
|
|
symbolic links.</para>
|
2004-07-22 08:25:29 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Contents</title>
|
2004-10-14 12:18:18 +08:00
|
|
|
|
2005-01-07 11:02:31 +08:00
|
|
|
<segmentedlist>
|
2005-03-25 11:01:11 +08:00
|
|
|
<segtitle>Installed Programs</segtitle>
|
2005-01-31 07:01:56 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
2005-01-07 11:02:31 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
2005-03-25 11:01:11 +08:00
|
|
|
|
2005-01-07 11:02:31 +08:00
|
|
|
<seglistitem>
|
2005-03-25 11:01:11 +08:00
|
|
|
<seg>tclsh and tclsh8.4</seg>
|
2005-01-31 07:01:56 +08:00
|
|
|
<seg>libtcl.so and libtclstub8.4.a</seg>
|
2005-03-25 11:01:11 +08:00
|
|
|
<seg>/usr/include/tcl8.4 and /usr/lib/tcl8.4</seg>
|
|
|
|
</seglistitem>
|
2005-01-07 11:02:31 +08:00
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
|
|
|
|
<varlistentry id="tclsh">
|
|
|
|
<term><command>tclsh</command></term>
|
2005-03-25 11:01:11 +08:00
|
|
|
<listitem><para> is a symlink to the <command>tclsh8.4</command>
|
|
|
|
program.</para>
|
|
|
|
<indexterm zone="tcl tclsh">
|
|
|
|
<primary sortas="g-tclsh">tclsh</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="tclsh8.4">
|
|
|
|
<term><command>tclsh8.4</command></term>
|
2005-01-07 11:02:31 +08:00
|
|
|
<listitem><para> is a simple shell containing the
|
|
|
|
<application>Tcl</application> interpreter.</para>
|
2005-03-25 11:01:11 +08:00
|
|
|
<indexterm zone="tcl tclsh8.4">
|
|
|
|
<primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
|
2005-01-07 11:02:31 +08:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libtcl">
|
|
|
|
<term><filename role="library">libtcl.so</filename></term>
|
|
|
|
<listitem><para>contains the <acronym>API</acronym> functions required
|
|
|
|
by <application>Tcl</application>.</para>
|
2005-01-17 00:56:15 +08:00
|
|
|
<indexterm zone="tcl libtcl">
|
|
|
|
<primary sortas="c-libtcl">libtcl.so</primary></indexterm>
|
2005-01-07 11:02:31 +08:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-10-14 12:18:18 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
2003-09-21 23:07:05 +08:00
|
|
|
|
|
|
|
</sect1>
|