2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2008-10-13 22:49:44 +08:00
|
|
|
<!ENTITY tcl-download-http "&sourceforge-repo;/tcl/tcl&tcl-version;-src.tar.gz">
|
2012-08-23 23:16:27 +08:00
|
|
|
<!ENTITY tcl-download-ftp " ">
|
2014-11-14 13:01:05 +08:00
|
|
|
<!ENTITY tcl-md5sum "db382feca91754b7f93da16dc4cdad1f">
|
2014-08-28 04:03:02 +08:00
|
|
|
<!ENTITY tcl-size "8.5 MB">
|
2014-11-14 13:01:05 +08:00
|
|
|
<!ENTITY tcl-buildsize "73 MB (includes documentation installation)(add 10MB for tests)">
|
|
|
|
<!ENTITY tcl-time "0.9 SBU (adittional 2.2 SBU for the tests)">
|
2007-07-06 04:15:02 +08:00
|
|
|
|
2009-02-13 04:44:41 +08:00
|
|
|
<!ENTITY tcl-doc-download "&sourceforge-repo;/tcl/tcl&tcl-version;-html.tar.gz">
|
2014-11-15 00:58:49 +08:00
|
|
|
<!ENTITY tcl-doc-md5sum "912142f117a090e83e8ec3d771572191">
|
2013-09-27 08:43:48 +08:00
|
|
|
<!ENTITY tcl-doc-size "1.2 MB">
|
2009-02-13 04:44:41 +08:00
|
|
|
|
2013-01-18 23:06:25 +08:00
|
|
|
<!-- Ensure this is updated when Tcl moves from the 8.6.x branch -->
|
|
|
|
<!ENTITY tcl-ver "8.6">
|
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>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Tcl-&tcl-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="tcl">
|
|
|
|
<primary sortas="a-Tcl">Tcl</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Tcl</title>
|
|
|
|
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
The <application>Tcl</application> package contains the Tool Command
|
|
|
|
Language, a robust general-purpose scripting language.
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
|
2015-02-21 05:15:05 +08:00
|
|
|
&lfs77_checked;
|
2010-09-26 10:31:37 +08:00
|
|
|
|
2005-05-06 04:35:01 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&tcl-download-http;"/>
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&tcl-download-ftp;"/>
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &tcl-md5sum;
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
Download size: &tcl-size;
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &tcl-buildsize;
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &tcl-time;
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2009-02-13 04:44:41 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
2010-05-15 08:57:12 +08:00
|
|
|
<title>Optional Documentation</title>
|
2009-02-13 04:44:41 +08:00
|
|
|
<listitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&tcl-doc-download;"/>
|
|
|
|
</para>
|
2009-02-13 04:44:41 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &tcl-doc-md5sum;
|
|
|
|
</para>
|
2009-02-13 04:44:41 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
Download size: &tcl-doc-size;
|
|
|
|
</para>
|
2009-02-13 04:44:41 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2013-01-18 23:06:25 +08:00
|
|
|
<ulink url="&blfs-wiki;/tcl"/>
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Tcl</title>
|
|
|
|
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
This package is also installed in LFS during the bootstrap phase.
|
|
|
|
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
|
|
|
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
If you downloaded the optional documentation, unpack the tarball
|
|
|
|
by issuing the following command:
|
|
|
|
</para>
|
2009-02-13 04:44:41 +08:00
|
|
|
|
2011-10-26 12:34:14 +08:00
|
|
|
<screen><userinput>tar -xf ../tcl&tcl-version;-html.tar.gz --strip-components=1</userinput></screen>
|
2009-02-13 04:44:41 +08:00
|
|
|
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
Install <application>Tcl</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
|
2014-09-16 03:23:10 +08:00
|
|
|
<screen><userinput>export SRCDIR=`pwd` &&
|
2014-09-14 21:39:38 +08:00
|
|
|
|
|
|
|
cd unix &&
|
|
|
|
|
2013-08-21 04:51:02 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--without-tzdata \
|
2013-01-18 23:06:25 +08:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
$([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
|
2008-03-27 03:44:59 +08:00
|
|
|
make &&
|
2014-11-14 13:01:05 +08:00
|
|
|
|
2014-09-14 21:39:38 +08:00
|
|
|
sed -e "s#$SRCDIR/unix#/usr/lib#" \
|
|
|
|
-e "s#$SRCDIR#/usr/include#" \
|
|
|
|
-i tclConfig.sh &&
|
|
|
|
|
2014-11-14 13:01:05 +08:00
|
|
|
sed -e "s#$SRCDIR/unix/pkgs/tdbc1.0.2#/usr/lib/tdbc1.0.2#" \
|
|
|
|
-e "s#$SRCDIR/pkgs/tdbc1.0.2/generic#/usr/include#" \
|
|
|
|
-e "s#$SRCDIR/pkgs/tdbc1.0.2/library#/usr/lib/tcl8.6#" \
|
|
|
|
-e "s#$SRCDIR/pkgs/tdbc1.0.2#/usr/include#" \
|
|
|
|
-i pkgs/tdbc1.0.2/tdbcConfig.sh &&
|
2014-09-14 21:39:38 +08:00
|
|
|
|
2014-11-14 13:01:05 +08:00
|
|
|
sed -e "s#$SRCDIR/unix/pkgs/itcl4.0.2#/usr/lib/itcl4.0.2#" \
|
|
|
|
-e "s#$SRCDIR/pkgs/itcl4.0.2/generic#/usr/include#" \
|
|
|
|
-e "s#$SRCDIR/pkgs/itcl4.0.2#/usr/include#" \
|
|
|
|
-i pkgs/itcl4.0.2/itclConfig.sh &&
|
2014-09-14 21:39:38 +08:00
|
|
|
|
|
|
|
unset SRCDIR</userinput></screen>
|
|
|
|
|
2005-01-31 07:01:56 +08:00
|
|
|
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
To test the results, issue: <command>make test</command>.
|
|
|
|
</para>
|
2005-04-17 10:55:09 +08:00
|
|
|
|
2012-05-12 04:27:05 +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-05-07 11:58:14 +08:00
|
|
|
make install-private-headers &&
|
2010-03-10 22:09:54 +08:00
|
|
|
ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh &&
|
|
|
|
chmod -v 755 /usr/lib/libtcl&tcl-ver;.so</userinput></screen>
|
2006-05-07 11:58:14 +08:00
|
|
|
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
If you downloaded the optional documentation, install it by issuing
|
|
|
|
the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2009-02-13 04:44:41 +08:00
|
|
|
|
2012-05-12 04:27:05 +08:00
|
|
|
<screen role="root"><userinput>mkdir -v -p /usr/share/doc/tcl-&tcl-version; &&
|
|
|
|
cp -v -r ../html/* /usr/share/doc/tcl-&tcl-version;</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>
|
|
|
|
|
2013-05-10 04:47:58 +08:00
|
|
|
<para>
|
|
|
|
<option>--without-tzdata</option>: This switch prevents installation
|
|
|
|
of the shipped timezone data which are older than the ones provided
|
|
|
|
in LFS.
|
|
|
|
</para>
|
|
|
|
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
2013-01-25 08:48:47 +08:00
|
|
|
<parameter>$([ $(uname -m) = x86_64 ] && echo
|
|
|
|
--enable-64bit)</parameter>: This switch is used to enable 64 bit
|
2013-01-18 23:06:25 +08:00
|
|
|
support in <application>Tcl</application> on 64 bit operating
|
|
|
|
systems.
|
2012-05-12 04:27:05 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>make install-private-headers</command>: This command is
|
|
|
|
used to install the <application>Tcl</application> library interface
|
|
|
|
headers used by other packages if they link to the
|
|
|
|
<application>Tcl</application> library.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
|
|
|
|
command is used to create a compatibility symbolic link to the
|
|
|
|
<command>tclsh&tcl-ver;</command> file as many packages expect a file
|
|
|
|
named <command>tclsh</command>.
|
|
|
|
</para>
|
|
|
|
|
2014-09-14 21:39:38 +08:00
|
|
|
<para>
|
|
|
|
<command>sed -e ...</command>: The <application>Tcl</application> package
|
|
|
|
expects that its source tree is preserved so that packages depending on
|
|
|
|
it for their compilation can utilize it. These <command>sed</command>
|
|
|
|
remove the references to the build directory and replace them with saner
|
|
|
|
system-wide locations.
|
2012-05-12 04:27:05 +08:00
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<seg>
|
|
|
|
tclsh and tclsh&tcl-ver;
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2014-08-28 04:03:02 +08:00
|
|
|
/usr/lib/itcl4.0.1,
|
2014-09-16 03:23:10 +08:00
|
|
|
/usr/lib/sqlite3.8.6
|
2012-05-12 04:27:05 +08:00
|
|
|
/usr/lib/tcl8,
|
|
|
|
/usr/lib/tcl&tcl-ver;,
|
2014-08-28 04:03:02 +08:00
|
|
|
/usr/lib/tdbc1.0.1,
|
|
|
|
/usr/lib/tdbcmysql1.0.1,
|
|
|
|
/usr/lib/tdbcodbc1.0.1,
|
|
|
|
/usr/lib/tdbcpostgres1.0.1,
|
|
|
|
/usr/lib/thread2.7.1,
|
2014-09-28 05:06:29 +08:00
|
|
|
/usr/share/doc/tcl-&tcl-version;, and
|
2014-08-28 04:03:02 +08:00
|
|
|
/usr/share/man/mann
|
2012-05-12 04:27:05 +08:00
|
|
|
</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>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
|
|
|
is a symlink to the <command>tclsh&tcl-ver;</command> program.
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
<indexterm zone="tcl tclsh">
|
2012-07-29 05:45:43 +08:00
|
|
|
<primary sortas="b-tclsh">tclsh</primary>
|
2005-05-06 04:35:01 +08:00
|
|
|
</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>
|
2012-05-12 04:27:05 +08:00
|
|
|
<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">
|
2013-01-18 23:06:25 +08:00
|
|
|
<term><filename class="libraryfile">libtcl&tcl-ver;.so</filename></term>
|
2005-05-06 04:35:01 +08:00
|
|
|
<listitem>
|
2012-05-12 04:27:05 +08:00
|
|
|
<para>
|
2013-02-12 02:51:17 +08:00
|
|
|
contains the API functions required by
|
2012-05-12 04:27:05 +08:00
|
|
|
<application>Tcl</application>.
|
|
|
|
</para>
|
2005-05-06 04:35:01 +08:00
|
|
|
<indexterm zone="tcl libtcl">
|
2012-05-12 04:27:05 +08:00
|
|
|
<primary sortas="c-libtcl">libtcl&tcl-ver;.so</primary>
|
2005-05-06 04:35:01 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2003-09-21 23:07:05 +08:00
|
|
|
|
|
|
|
</sect1>
|