2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
<!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">
|
|
|
|
<!ENTITY tcl-size "3.3 MB">
|
|
|
|
<!ENTITY tcl-buildsize "17.1 MB">
|
|
|
|
<!ENTITY tcl-time "0.27 SBU">
|
|
|
|
|
|
|
|
]>
|
|
|
|
|
2003-10-05 18:00:31 +08:00
|
|
|
<sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
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>
|
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>
|
|
|
|
<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>
|
|
|
|
</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-06-13 06:56:28 +08:00
|
|
|
<note><para>This package is also installed in <acronym>LFS</acronym>
|
|
|
|
during the bootstrap phase. The significant difference between the
|
2004-07-22 08:25:29 +08:00
|
|
|
two installations (other than installing to
|
|
|
|
<filename class="directory">/usr</filename>) is to install
|
2004-06-13 06:56:28 +08:00
|
|
|
the package in such a way that there is no need to keep the build
|
|
|
|
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>
|
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<screen><userinput><command>VERSION=&tcl-version; &&
|
|
|
|
V=`echo $VERSION | cut -d "." -f 1,2` &&
|
|
|
|
DIR=$PWD &&
|
|
|
|
cd unix &&
|
|
|
|
./configure --prefix=/usr &&
|
|
|
|
make &&
|
|
|
|
sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &&
|
|
|
|
sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &&
|
|
|
|
sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," \
|
|
|
|
tclConfig.sh &&
|
|
|
|
mv ../doc/{,Tcl_}Thread.3 &&
|
|
|
|
sed -i 's/ Thread.3/ Tcl_Thread.3/' mkLinks &&
|
|
|
|
make install &&
|
|
|
|
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 &&
|
|
|
|
ln -nsf /usr/include/tcl${V} /usr/lib/tcl${V}/include &&
|
|
|
|
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
|
|
|
|
|
|
|
<note><para>If you build the package as one user, then switch to root to
|
|
|
|
install the package, ensure you set the environment variables
|
|
|
|
<envar>V</envar> and <envar>VERSION</envar> before running the installation
|
|
|
|
commands.</para></note>
|
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
2004-07-22 08:25:29 +08:00
|
|
|
|
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
|
|
|
|
that depend on <application>Tcl</application>. These <command>sed</command>'s
|
|
|
|
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>
|
|
|
|
|
|
|
|
<para>The <application>Tcl</application> package contains
|
|
|
|
<command>tclsh</command> and the
|
|
|
|
<filename class='libraryfile'>libtcl</filename> libraries.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
|
|
|
|
<sect3><title>tclsh</title>
|
|
|
|
<para><command>tclsh</command> is a simple shell containing the
|
|
|
|
<application>Tcl</application> interpreter.</para></sect3>
|
2004-06-13 06:56:28 +08:00
|
|
|
|
|
|
|
</sect2>
|
2003-09-21 23:07:05 +08:00
|
|
|
|
|
|
|
</sect1>
|