glfs/general/prog/tcl.xml

198 lines
6.8 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY tcl-download-http "http://downloads.sourceforge.net/tcl/tcl&tcl-version;-src.tar.gz">
<!ENTITY tcl-download-ftp " ">
<!-- <!ENTITY tcl-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tcl&tcl-version;-src.tar.gz"> -->
<!ENTITY tcl-md5sum "51c6bf74d3ffdb0bd866ecdac6ff6460">
<!ENTITY tcl-size "3.5 MB">
<!ENTITY tcl-buildsize "25 MB">
<!ENTITY tcl-time "0.3 SBU (additional 0.7 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 -->
]>
<sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
<?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>
<para>The <application>Tcl</application> package contains the Tool Command
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>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/tcl"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of Tcl</title>
<note>
<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>
</note>
<para>Install <application>Tcl</application> by running the following
commands:</para>
<!-- This is removed per discussion and fairly vigorous testing
sed -i -e "s:${PWD}:/usr/lib:" \
-e "s:$(dirname ${PWD}):/usr/include/tcl&tcl-ver;:" \
-e "/TCL_LIB_FILE/ s:':\":g" \
tclConfig.sh
-->
<screen><userinput>cd unix &amp;&amp;
./configure --prefix=/usr --enable-threads &amp;&amp;
make</userinput></screen>
<para>To test the results, issue: <command>make test</command>.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install &amp;&amp;
make install-private-headers &amp;&amp;
ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</userinput></screen>
<!-- This is removed per discussion and fairly vigorous testing
install -v -d /usr/include/tcl&tcl-ver;/{unix,generic} &amp;&amp;
install -v -m644 *.h /usr/include/tcl&tcl-ver;/unix/ &amp;&amp;
install -v -m644 ../generic/*.h /usr/include/tcl&tcl-ver;/generic/ &amp;&amp;
rm -v -f /usr/include/tcl&tcl-ver;/generic/tcl{,{,Plat}Decls}.h &amp;&amp;
ln -v -nsf ../../include/tcl&tcl-ver; /usr/lib/tcl&tcl-ver;/include &amp;&amp;
ln -v -sf libtcl&tcl-ver;.so /usr/lib/libtcl.so &amp;&amp;
-->
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><parameter>--enable-threads</parameter>: This switch forces the package
to build with thread support.</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>
<!-- This is removed per discussion and fairly vigorous testing
<para><command>sed -i -e ... tclConfig.sh</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. This <command>sed</command> removes the references to the
build directory and replaces them with saner system-wide locations.</para>
<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>
<seg>tclsh and tclsh&tcl-ver;</seg>
<seg>libtcl.so and libtclstub&tcl-ver;.a</seg>
<seg>/usr/lib/tcl&tcl-ver;</seg>
</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>
<para> is a symlink to the <command>tclsh&tcl-ver;</command>
program.</para>
<indexterm zone="tcl tclsh">
<primary sortas="g-tclsh">tclsh</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="tclsh-eight">
<term><command>tclsh&tcl-ver;</command></term>
<listitem>
<para> is a simple shell containing the
<application>Tcl</application> interpreter.</para>
<indexterm zone="tcl tclsh-eight">
<primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
</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>
</sect1>