glfs/general/prog/tcl.xml
Randy McMurchy 7ee98495b2 Shortened line lengths in various package instructions to fit in the PDF viewable area (through 450 pages)
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3275 af4574ff-66df-0310-9fd7-8a98e5e911e0
2005-01-13 02:55:38 +00:00

145 lines
5.0 KiB
XML

<?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.4 MB">
<!ENTITY tcl-buildsize "34 MB">
<!ENTITY tcl-time "0.33 SBU">
]>
<sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="tcl.html"?>
<title>Tcl-&tcl-version;</title>
<indexterm zone="tcl"><primary
sortas="a-Tcl">Tcl</primary></indexterm>
<sect2>
<title>Introduction to <application>Tcl</application></title>
<para>The <application>Tcl</application> package contains the Tool Command
Language, a robust general-purpose scripting language.</para>
<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>
</sect2>
<sect2>
<title>Installation of <application>Tcl</application></title>
<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
directory around after installation.</para></note>
<para>Install <application>Tcl</application> by running the following
commands:</para>
<screen><userinput><command>VERSION=&tcl-version; &amp;&amp;
V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
DIR=$PWD &amp;&amp;
cd unix &amp;&amp;
./configure --prefix=/usr --enable-threads &amp;&amp;
make &amp;&amp;
sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &amp;&amp;
sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &amp;&amp;
sed -i \
"s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," \
tclConfig.sh &amp;&amp;
make install &amp;&amp;
install -d /usr/include/tcl${V}/unix &amp;&amp;
install -m644 *.h /usr/include/tcl${V}/unix/ &amp;&amp;
install -d /usr/include/tcl${V}/generic &amp;&amp;
install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &amp;&amp;
rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &amp;&amp;
ln -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &amp;&amp;
ln -sf libtcl${V}.so /usr/lib/libtcl.so &amp;&amp;
ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
<caution><para>If you build the package as an ordinary user and 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></caution>
</sect2>
<sect2>
<title>Command explanations</title>
<para><parameter>--enable-threads</parameter>: This switch forces the package
to build with thread support.</para>
<para><command>sed -i ...</command>: The <application>Tcl</application>
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>
<para><command>install ...</command>: These commands install the internal
headers into a system-wide location.</para>
<para><command>ln -sf ...</command>: These commands create compatibility
symbolic links.</para>
</sect2>
<sect2>
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Program</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>tclsh</seg>
<seg>libtcl</seg>
<seg>/usr/lib/tcl8.4 and /usr/include/tcl8.4</seg></seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<varlistentry id="tclsh">
<term><command>tclsh</command></term>
<listitem><para> is a simple shell containing the
<application>Tcl</application> interpreter.</para>
<indexterm zone="tcl tclsh"><primary
sortas="b-tclsh">tclsh</primary></indexterm>
</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>
<indexterm zone="tcl libtcl"><primary
sortas="c-libtcl">libtcl.so</primary></indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>