[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[fce275e] | 7 | <!ENTITY tcl-download-http "&sourceforge-repo;/tcl/tcl&tcl-version;-src.tar.gz">
|
---|
[e8d5d969] | 8 | <!ENTITY tcl-download-ftp "&gentoo-ftp-repo;/tcl&tcl-version;-src.tar.gz">
|
---|
[dd01532b] | 9 | <!ENTITY tcl-md5sum "7f123e53b3daaaba2478d3af5a0752e3">
|
---|
| 10 | <!ENTITY tcl-size "4.4 MB">
|
---|
| 11 | <!ENTITY tcl-buildsize "62 MB (includes documentation installation)">
|
---|
| 12 | <!ENTITY tcl-time "0.5 SBU (additional 1.2 SBU to run the test suite)">
|
---|
[4d62032] | 13 |
|
---|
[5729aff] | 14 | <!ENTITY tcl-doc-download "&sourceforge-repo;/tcl/tcl&tcl-version;-html.tar.gz">
|
---|
[dd01532b] | 15 | <!ENTITY tcl-doc-md5sum "788cacd89d8cf97b23f53500ede910bc">
|
---|
[5729aff] | 16 | <!ENTITY tcl-doc-size "925 KB">
|
---|
| 17 |
|
---|
[dd01532b] | 18 | <!-- Ensure this is updated when Tcl moves from the 8.5.x branch -->
|
---|
[36225c6e] | 19 | <!ENTITY tcl-ver "8.5">
|
---|
[52d29f7] | 20 | ]>
|
---|
| 21 |
|
---|
[503b39f] | 22 | <sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
---|
[5cc1126a] | 23 | <?dbhtml filename="tcl.html"?>
|
---|
| 24 |
|
---|
| 25 | <sect1info>
|
---|
| 26 | <othername>$LastChangedBy$</othername>
|
---|
| 27 | <date>$Date$</date>
|
---|
| 28 | </sect1info>
|
---|
| 29 |
|
---|
| 30 | <title>Tcl-&tcl-version;</title>
|
---|
| 31 |
|
---|
| 32 | <indexterm zone="tcl">
|
---|
| 33 | <primary sortas="a-Tcl">Tcl</primary>
|
---|
| 34 | </indexterm>
|
---|
| 35 |
|
---|
| 36 | <sect2 role="package">
|
---|
| 37 | <title>Introduction to Tcl</title>
|
---|
| 38 |
|
---|
[7cd76d62] | 39 | <para>The <application>Tcl</application> package contains the Tool Command
|
---|
[5cc1126a] | 40 | Language, a robust general-purpose scripting language.</para>
|
---|
| 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (HTTP): <ulink url="&tcl-download-http;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (FTP): <ulink url="&tcl-download-ftp;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum: &tcl-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &tcl-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &tcl-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &tcl-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
[5729aff] | 64 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 65 | <itemizedlist spacing="compact">
|
---|
[0dddae0] | 66 | <title>Optional Documentation</title>
|
---|
[5729aff] | 67 | <listitem>
|
---|
[0dddae0] | 68 | <para>Download (HTTP): <ulink url="&tcl-doc-download;"/></para>
|
---|
[5729aff] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Download MD5 sum: &tcl-doc-md5sum;</para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Download size: &tcl-doc-size;</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
[1039de3] | 78 | <para condition="html" role="usernotes">User Notes:
|
---|
| 79 | <ulink url="&blfs-wiki;/tcl"/></para>
|
---|
| 80 |
|
---|
[5cc1126a] | 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of Tcl</title>
|
---|
| 85 |
|
---|
[e8d5d969] | 86 | <para>This package is also installed in LFS during the bootstrap phase.
|
---|
| 87 | As it is not installed during Chapter 6 of LFS, installation instructions
|
---|
| 88 | are included here in BLFS.</para>
|
---|
[5cc1126a] | 89 |
|
---|
[5729aff] | 90 | <para>If you downloaded the optional documentation, unpack the tarball
|
---|
| 91 | by issuing the following command:</para>
|
---|
| 92 |
|
---|
| 93 | <screen><userinput>tar xf ../tcl&tcl-version;-html.tar.gz --strip-components=1</userinput></screen>
|
---|
| 94 |
|
---|
[7cd76d62] | 95 | <para>Install <application>Tcl</application> by running the following
|
---|
[5cc1126a] | 96 | commands:</para>
|
---|
| 97 |
|
---|
[33fd7e43] | 98 | <screen><userinput>cd unix &&
|
---|
[e8d5d969] | 99 | ./configure --prefix=/usr \
|
---|
| 100 | --enable-threads \
|
---|
| 101 | --mandir=/usr/share/man &&
|
---|
[206b7a1] | 102 | make &&
|
---|
[5729aff] | 103 |
|
---|
[206b7a1] | 104 | sed -i \
|
---|
| 105 | -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
[b2725db] | 106 | -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
---|
[d6e5d4f] | 107 | tclConfig.sh</userinput></screen>
|
---|
[d8614521] | 108 |
|
---|
[5cc1126a] | 109 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
[fa4bb53] | 110 |
|
---|
[5cc1126a] | 111 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d8614521] | 112 |
|
---|
[5cc1126a] | 113 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 114 | make install-private-headers &&
|
---|
[dd01532b] | 115 | ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh &&
|
---|
| 116 | chmod -v 755 /usr/lib/libtcl&tcl-ver;.so</userinput></screen>
|
---|
[33fd7e43] | 117 |
|
---|
[5729aff] | 118 | <para>If you downloaded the optional documentation, install it by issuing
|
---|
| 119 | the following commands as the
|
---|
| 120 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 121 |
|
---|
| 122 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/tcl-&tcl-version; &&
|
---|
| 123 | cp -v -R ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
|
---|
[d8614521] | 124 |
|
---|
[5cc1126a] | 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
| 130 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 131 | to build with thread support.</para>
|
---|
| 132 |
|
---|
[33fd7e43] | 133 | <para><command>make install-private-headers</command>: This command is
|
---|
| 134 | used to install the <application>Tcl</application> library interface
|
---|
| 135 | headers used by other packages if they link to the
|
---|
| 136 | <application>Tcl</application> library.</para>
|
---|
| 137 |
|
---|
| 138 | <para><command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
|
---|
| 139 | command is used to create a compatibility symbolic link to the
|
---|
| 140 | <command>tclsh&tcl-ver;</command> file as many packages expect a file
|
---|
| 141 | named <command>tclsh</command>.</para>
|
---|
| 142 |
|
---|
[4c34d6e2] | 143 | <para><command>sed -i -e ... tclConfig.sh</command>: The
|
---|
[36f2c9e] | 144 | <application>Tcl</application> package expects that its source tree is
|
---|
| 145 | preserved so that packages depending on it for their compilation
|
---|
| 146 | can utilize it. This <command>sed</command> removes the references to the
|
---|
| 147 | build directory and replaces them with saner system-wide locations.</para>
|
---|
[5cc1126a] | 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2 role="content">
|
---|
| 152 | <title>Contents</title>
|
---|
| 153 |
|
---|
| 154 | <segmentedlist>
|
---|
| 155 | <segtitle>Installed Programs</segtitle>
|
---|
| 156 | <segtitle>Installed Libraries</segtitle>
|
---|
| 157 | <segtitle>Installed Directories</segtitle>
|
---|
| 158 |
|
---|
| 159 | <seglistitem>
|
---|
[36f2c9e] | 160 | <seg>tclsh and tclsh&tcl-ver;</seg>
|
---|
[36225c6e] | 161 | <seg>libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a</seg>
|
---|
[5729aff] | 162 | <seg>/usr/lib/tcl8, /usr/lib/tcl&tcl-ver;, /usr/share/man/mann,
|
---|
| 163 | and optionally, /usr/share/doc/&tcl-version;</seg>
|
---|
[5cc1126a] | 164 | </seglistitem>
|
---|
| 165 | </segmentedlist>
|
---|
| 166 |
|
---|
| 167 | <variablelist>
|
---|
| 168 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 169 | <?dbfo list-presentation="list"?>
|
---|
| 170 | <?dbhtml list-presentation="table"?>
|
---|
| 171 |
|
---|
| 172 | <varlistentry id="tclsh">
|
---|
| 173 | <term><command>tclsh</command></term>
|
---|
| 174 | <listitem>
|
---|
[36f2c9e] | 175 | <para> is a symlink to the <command>tclsh&tcl-ver;</command>
|
---|
[5cc1126a] | 176 | program.</para>
|
---|
| 177 | <indexterm zone="tcl tclsh">
|
---|
| 178 | <primary sortas="g-tclsh">tclsh</primary>
|
---|
| 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
[36f2c9e] | 183 | <varlistentry id="tclsh-eight">
|
---|
| 184 | <term><command>tclsh&tcl-ver;</command></term>
|
---|
[5cc1126a] | 185 | <listitem>
|
---|
| 186 | <para> is a simple shell containing the
|
---|
| 187 | <application>Tcl</application> interpreter.</para>
|
---|
[36f2c9e] | 188 | <indexterm zone="tcl tclsh-eight">
|
---|
| 189 | <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
|
---|
[5cc1126a] | 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | <varlistentry id="libtcl">
|
---|
| 195 | <term><filename role="library">libtcl.so</filename></term>
|
---|
| 196 | <listitem>
|
---|
| 197 | <para>contains the API functions required
|
---|
| 198 | by <application>Tcl</application>.</para>
|
---|
| 199 | <indexterm zone="tcl libtcl">
|
---|
| 200 | <primary sortas="c-libtcl">libtcl.so</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | </variablelist>
|
---|
| 206 |
|
---|
| 207 | </sect2>
|
---|
[c4f1401] | 208 |
|
---|
| 209 | </sect1>
|
---|