[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY tcl-download-http "http://prdownloads.sourceforge.net/tcl/tcl&tcl-version;-src.tar.gz">
|
---|
| 8 | <!ENTITY tcl-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tcl&tcl-version;-src.tar.gz">
|
---|
[f3d509e] | 9 | <!ENTITY tcl-size "3.4 MB">
|
---|
[53cdded4] | 10 | <!ENTITY tcl-buildsize "34 MB">
|
---|
[f3d509e] | 11 | <!ENTITY tcl-time "0.33 SBU">
|
---|
[52d29f7] | 12 | ]>
|
---|
| 13 |
|
---|
[503b39f] | 14 | <sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[19aa75a] | 19 | <?dbhtml filename="tcl.html"?>
|
---|
[503b39f] | 20 | <title>Tcl-&tcl-version;</title>
|
---|
[bad8b53] | 21 | <indexterm zone="tcl"><primary
|
---|
| 22 | sortas="a-Tcl">Tcl</primary></indexterm>
|
---|
| 23 |
|
---|
[c4f1401] | 24 |
|
---|
[52d29f7] | 25 | <sect2>
|
---|
| 26 | <title>Introduction to <application>Tcl</application></title>
|
---|
[3b01cdd] | 27 |
|
---|
| 28 | <para>The <application>Tcl</application> package contains the Tool Command
|
---|
| 29 | Language, a robust general-purpose scripting language.</para>
|
---|
| 30 |
|
---|
[52d29f7] | 31 | <sect3><title>Package information</title>
|
---|
| 32 | <itemizedlist spacing='compact'>
|
---|
| 33 | <listitem><para>Download (HTTP): <ulink
|
---|
| 34 | url="&tcl-download-http;"/></para></listitem>
|
---|
| 35 | <listitem><para>Download (FTP): <ulink
|
---|
| 36 | url="&tcl-download-ftp;"/></para></listitem>
|
---|
| 37 | <listitem><para>Download size: &tcl-size;</para></listitem>
|
---|
[f3d509e] | 38 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 39 | &tcl-buildsize;</para></listitem>
|
---|
| 40 | <listitem><para>Estimated build time:
|
---|
| 41 | &tcl-time;</para></listitem></itemizedlist>
|
---|
| 42 | </sect3>
|
---|
[3b01cdd] | 43 |
|
---|
[52d29f7] | 44 | </sect2>
|
---|
| 45 |
|
---|
| 46 | <sect2>
|
---|
| 47 | <title>Installation of <application>Tcl</application></title>
|
---|
[3b01cdd] | 48 |
|
---|
[53cdded4] | 49 | <note><para>This package is also installed in <acronym>LFS</acronym> during
|
---|
| 50 | the bootstrap phase. The significant difference between the two installations
|
---|
| 51 | (other than installing to <filename class="directory">/usr</filename>) is the
|
---|
| 52 | package is installed in such a way that there is no need to keep the build
|
---|
[52d29f7] | 53 | directory around after installation.</para></note>
|
---|
[3b01cdd] | 54 |
|
---|
| 55 | <para>Install <application>Tcl</application> by running the following
|
---|
| 56 | commands:</para>
|
---|
| 57 |
|
---|
[52d29f7] | 58 | <screen><userinput><command>VERSION=&tcl-version; &&
|
---|
| 59 | V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 60 | DIR=$PWD &&
|
---|
| 61 | cd unix &&
|
---|
[53cdded4] | 62 | ./configure --prefix=/usr --enable-threads &&
|
---|
[52d29f7] | 63 | make &&
|
---|
| 64 | sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &&
|
---|
| 65 | sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &&
|
---|
[7ee9849] | 66 | sed -i \
|
---|
| 67 | "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," \
|
---|
| 68 | tclConfig.sh &&
|
---|
[52d29f7] | 69 | make install &&
|
---|
| 70 | install -d /usr/include/tcl${V}/unix &&
|
---|
| 71 | install -m644 *.h /usr/include/tcl${V}/unix/ &&
|
---|
| 72 | install -d /usr/include/tcl${V}/generic &&
|
---|
| 73 | install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
|
---|
| 74 | rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
|
---|
[e2aa32b3] | 75 | ln -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &&
|
---|
[52d29f7] | 76 | ln -sf libtcl${V}.so /usr/lib/libtcl.so &&
|
---|
| 77 | ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
|
---|
[3b01cdd] | 78 |
|
---|
[785d6d2f] | 79 | <caution><para>If you build the package as an ordinary user and then switch to
|
---|
[53cdded4] | 80 | root to install the package, ensure you set the environment variables
|
---|
[3b01cdd] | 81 | <envar>V</envar> and <envar>VERSION</envar> before running the installation
|
---|
[785d6d2f] | 82 | commands.</para></caution>
|
---|
[3b01cdd] | 83 |
|
---|
[52d29f7] | 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2>
|
---|
| 87 | <title>Command explanations</title>
|
---|
[3b01cdd] | 88 |
|
---|
[53cdded4] | 89 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 90 | to build with thread support.</para>
|
---|
| 91 |
|
---|
[52d29f7] | 92 | <para><command>sed -i ...</command>: The <application>Tcl</application>
|
---|
[3b01cdd] | 93 | package assumes that the source that is used to build
|
---|
| 94 | <application>Tcl</application> is always kept around for compiling packages
|
---|
| 95 | that depend on <application>Tcl</application>. These <command>sed</command>'s
|
---|
| 96 | remove the reference to the build directory and replace them by saner system
|
---|
| 97 | wide locations.</para>
|
---|
| 98 |
|
---|
[52d29f7] | 99 | <para><command>install ...</command>: These commands install the internal
|
---|
| 100 | headers into a system-wide location.</para>
|
---|
[3b01cdd] | 101 |
|
---|
[52d29f7] | 102 | <para><command>ln -sf ...</command>: These commands create compatibility
|
---|
| 103 | symbolic links.</para>
|
---|
[3b01cdd] | 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | <sect2>
|
---|
| 107 | <title>Contents</title>
|
---|
[53cdded4] | 108 |
|
---|
[bad8b53] | 109 | <segmentedlist>
|
---|
| 110 | <segtitle>Installed Program</segtitle>
|
---|
| 111 | <segtitle>Installed Library</segtitle>
|
---|
| 112 | <segtitle>Installed Directories</segtitle>
|
---|
| 113 | <seglistitem>
|
---|
| 114 | <seg>tclsh</seg>
|
---|
| 115 | <seg>libtcl</seg>
|
---|
| 116 | <seg>/usr/lib/tcl8.4 and /usr/include/tcl8.4</seg></seglistitem>
|
---|
| 117 | </segmentedlist>
|
---|
| 118 |
|
---|
| 119 | <variablelist>
|
---|
| 120 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 121 | <?dbfo list-presentation="list"?>
|
---|
| 122 |
|
---|
| 123 | <varlistentry id="tclsh">
|
---|
| 124 | <term><command>tclsh</command></term>
|
---|
| 125 | <listitem><para> is a simple shell containing the
|
---|
| 126 | <application>Tcl</application> interpreter.</para>
|
---|
| 127 | <indexterm zone="tcl tclsh"><primary
|
---|
| 128 | sortas="b-tclsh">tclsh</primary></indexterm>
|
---|
| 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="libtcl">
|
---|
| 133 | <term><filename role="library">libtcl.so</filename></term>
|
---|
| 134 | <listitem><para>contains the <acronym>API</acronym> functions required
|
---|
| 135 | by <application>Tcl</application>.</para>
|
---|
| 136 | <indexterm zone="tcl libtcl"><primary
|
---|
| 137 | sortas="c-libtcl">libtcl.so</primary></indexterm>
|
---|
| 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
| 140 | </variablelist>
|
---|
[53cdded4] | 141 |
|
---|
[52d29f7] | 142 | </sect2>
|
---|
[c4f1401] | 143 |
|
---|
| 144 | </sect1>
|
---|