[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">
|
---|
[e8f7606] | 9 | <!ENTITY tcl-md5sum "b01a9691c83990b3db0ce62d1012ca67">
|
---|
[d8069d7] | 10 | <!ENTITY tcl-size "4.3 MB">
|
---|
| 11 | <!ENTITY tcl-buildsize "47 MB (includes documentation installation)">
|
---|
| 12 | <!ENTITY tcl-time "0.4 SBU">
|
---|
[4d62032] | 13 |
|
---|
[5729aff] | 14 | <!ENTITY tcl-doc-download "&sourceforge-repo;/tcl/tcl&tcl-version;-html.tar.gz">
|
---|
[e8f7606] | 15 | <!ENTITY tcl-doc-md5sum "69cffbda92abfda74c2809091b555548">
|
---|
[d8069d7] | 16 | <!ENTITY tcl-doc-size "912 KB">
|
---|
[5729aff] | 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 |
|
---|
[e8f7606] | 39 | <para>
|
---|
| 40 | The <application>Tcl</application> package contains the Tool Command
|
---|
| 41 | Language, a robust general-purpose scripting language.
|
---|
| 42 | </para>
|
---|
[5cc1126a] | 43 |
|
---|
[d8069d7] | 44 | &lfs70_checked;
|
---|
[a8d3d55a] | 45 |
|
---|
[5cc1126a] | 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
[e8f7606] | 49 | <para>
|
---|
| 50 | Download (HTTP): <ulink url="&tcl-download-http;"/>
|
---|
| 51 | </para>
|
---|
[5cc1126a] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[e8f7606] | 54 | <para>
|
---|
| 55 | Download (FTP): <ulink url="&tcl-download-ftp;"/>
|
---|
| 56 | </para>
|
---|
[5cc1126a] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[e8f7606] | 59 | <para>
|
---|
| 60 | Download MD5 sum: &tcl-md5sum;
|
---|
| 61 | </para>
|
---|
[5cc1126a] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[e8f7606] | 64 | <para>
|
---|
| 65 | Download size: &tcl-size;
|
---|
| 66 | </para>
|
---|
[5cc1126a] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[e8f7606] | 69 | <para>
|
---|
| 70 | Estimated disk space required: &tcl-buildsize;
|
---|
| 71 | </para>
|
---|
[5cc1126a] | 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
[e8f7606] | 74 | <para>
|
---|
| 75 | Estimated build time: &tcl-time;
|
---|
| 76 | </para>
|
---|
[5cc1126a] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
[5729aff] | 80 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 81 | <itemizedlist spacing="compact">
|
---|
[0dddae0] | 82 | <title>Optional Documentation</title>
|
---|
[5729aff] | 83 | <listitem>
|
---|
[e8f7606] | 84 | <para>
|
---|
| 85 | Download (HTTP): <ulink url="&tcl-doc-download;"/>
|
---|
| 86 | </para>
|
---|
[5729aff] | 87 | </listitem>
|
---|
| 88 | <listitem>
|
---|
[e8f7606] | 89 | <para>
|
---|
| 90 | Download MD5 sum: &tcl-doc-md5sum;
|
---|
| 91 | </para>
|
---|
[5729aff] | 92 | </listitem>
|
---|
| 93 | <listitem>
|
---|
[e8f7606] | 94 | <para>
|
---|
| 95 | Download size: &tcl-doc-size;
|
---|
| 96 | </para>
|
---|
[5729aff] | 97 | </listitem>
|
---|
| 98 | </itemizedlist>
|
---|
| 99 |
|
---|
[1039de3] | 100 | <para condition="html" role="usernotes">User Notes:
|
---|
| 101 | <ulink url="&blfs-wiki;/tcl"/></para>
|
---|
| 102 |
|
---|
[5cc1126a] | 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2 role="installation">
|
---|
| 106 | <title>Installation of Tcl</title>
|
---|
| 107 |
|
---|
[e8f7606] | 108 | <para>
|
---|
| 109 | This package is also installed in LFS during the bootstrap phase.
|
---|
| 110 | As it is not installed during Chapter 6 of LFS, installation instructions
|
---|
| 111 | are included here in BLFS.
|
---|
| 112 | </para>
|
---|
[5cc1126a] | 113 |
|
---|
[e8f7606] | 114 | <para>
|
---|
| 115 | If you downloaded the optional documentation, unpack the tarball
|
---|
| 116 | by issuing the following command:
|
---|
| 117 | </para>
|
---|
[5729aff] | 118 |
|
---|
[d8069d7] | 119 | <screen><userinput>tar -xf ../tcl&tcl-version;-html.tar.gz --strip-components=1</userinput></screen>
|
---|
[5729aff] | 120 |
|
---|
[e8f7606] | 121 | <para>
|
---|
| 122 | Install <application>Tcl</application> by running the following
|
---|
| 123 | commands:
|
---|
| 124 | </para>
|
---|
[5cc1126a] | 125 |
|
---|
[33fd7e43] | 126 | <screen><userinput>cd unix &&
|
---|
[e8d5d969] | 127 | ./configure --prefix=/usr \
|
---|
| 128 | --enable-threads \
|
---|
| 129 | --mandir=/usr/share/man &&
|
---|
[206b7a1] | 130 | make &&
|
---|
[5729aff] | 131 |
|
---|
[e8f7606] | 132 | sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
[b2725db] | 133 | -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
---|
[e8f7606] | 134 | -i tclConfig.sh</userinput></screen>
|
---|
[d8614521] | 135 |
|
---|
[e8f7606] | 136 | <para>
|
---|
| 137 | To test the results, issue: <command>make test</command>.
|
---|
| 138 | </para>
|
---|
[fa4bb53] | 139 |
|
---|
[e8f7606] | 140 | <para>
|
---|
| 141 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 142 | </para>
|
---|
[d8614521] | 143 |
|
---|
[5cc1126a] | 144 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 145 | make install-private-headers &&
|
---|
[dd01532b] | 146 | ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh &&
|
---|
| 147 | chmod -v 755 /usr/lib/libtcl&tcl-ver;.so</userinput></screen>
|
---|
[33fd7e43] | 148 |
|
---|
[e8f7606] | 149 | <para>
|
---|
| 150 | If you downloaded the optional documentation, install it by issuing
|
---|
| 151 | the following commands as the
|
---|
| 152 | <systemitem class="username">root</systemitem> user:
|
---|
| 153 | </para>
|
---|
[5729aff] | 154 |
|
---|
[e8f7606] | 155 | <screen role="root"><userinput>mkdir -v -p /usr/share/doc/tcl-&tcl-version; &&
|
---|
| 156 | cp -v -r ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
|
---|
[d8614521] | 157 |
|
---|
[5cc1126a] | 158 | </sect2>
|
---|
| 159 |
|
---|
| 160 | <sect2 role="commands">
|
---|
| 161 | <title>Command Explanations</title>
|
---|
| 162 |
|
---|
[e8f7606] | 163 | <para>
|
---|
| 164 | <option>--enable-threads</option>: This switch forces the package
|
---|
| 165 | to build with threads support.
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <para>
|
---|
| 169 | <command>make install-private-headers</command>: This command is
|
---|
| 170 | used to install the <application>Tcl</application> library interface
|
---|
| 171 | headers used by other packages if they link to the
|
---|
| 172 | <application>Tcl</application> library.
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
| 175 | <para>
|
---|
| 176 | <command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
|
---|
| 177 | command is used to create a compatibility symbolic link to the
|
---|
| 178 | <command>tclsh&tcl-ver;</command> file as many packages expect a file
|
---|
| 179 | named <command>tclsh</command>.
|
---|
| 180 | </para>
|
---|
| 181 |
|
---|
| 182 | <para>
|
---|
| 183 | <command>sed -e ... tclConfig.sh</command>: The
|
---|
| 184 | <application>Tcl</application> package expects that its source tree is
|
---|
| 185 | preserved so that packages depending on it for their compilation
|
---|
| 186 | can utilize it. This <command>sed</command> removes the references to the
|
---|
| 187 | build directory and replaces them with saner system-wide locations.
|
---|
| 188 | </para>
|
---|
[5cc1126a] | 189 |
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
| 192 | <sect2 role="content">
|
---|
| 193 | <title>Contents</title>
|
---|
| 194 |
|
---|
| 195 | <segmentedlist>
|
---|
| 196 | <segtitle>Installed Programs</segtitle>
|
---|
| 197 | <segtitle>Installed Libraries</segtitle>
|
---|
| 198 | <segtitle>Installed Directories</segtitle>
|
---|
| 199 |
|
---|
| 200 | <seglistitem>
|
---|
[e8f7606] | 201 | <seg>
|
---|
| 202 | tclsh and tclsh&tcl-ver;
|
---|
| 203 | </seg>
|
---|
| 204 | <seg>
|
---|
| 205 | libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a
|
---|
| 206 | </seg>
|
---|
| 207 | <seg>
|
---|
| 208 | /usr/lib/tcl8,
|
---|
| 209 | /usr/lib/tcl&tcl-ver;,
|
---|
| 210 | /usr/share/man/mann and optionally
|
---|
| 211 | /usr/share/doc/&tcl-version;
|
---|
| 212 | </seg>
|
---|
[5cc1126a] | 213 | </seglistitem>
|
---|
| 214 | </segmentedlist>
|
---|
| 215 |
|
---|
| 216 | <variablelist>
|
---|
| 217 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 218 | <?dbfo list-presentation="list"?>
|
---|
| 219 | <?dbhtml list-presentation="table"?>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="tclsh">
|
---|
| 222 | <term><command>tclsh</command></term>
|
---|
| 223 | <listitem>
|
---|
[e8f7606] | 224 | <para>
|
---|
| 225 | is a symlink to the <command>tclsh&tcl-ver;</command> program.
|
---|
| 226 | </para>
|
---|
[5cc1126a] | 227 | <indexterm zone="tcl tclsh">
|
---|
| 228 | <primary sortas="g-tclsh">tclsh</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
[36f2c9e] | 233 | <varlistentry id="tclsh-eight">
|
---|
| 234 | <term><command>tclsh&tcl-ver;</command></term>
|
---|
[5cc1126a] | 235 | <listitem>
|
---|
[e8f7606] | 236 | <para>
|
---|
| 237 | is a simple shell containing the
|
---|
| 238 | <application>Tcl</application> interpreter.
|
---|
| 239 | </para>
|
---|
[36f2c9e] | 240 | <indexterm zone="tcl tclsh-eight">
|
---|
| 241 | <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
|
---|
[5cc1126a] | 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
| 246 | <varlistentry id="libtcl">
|
---|
[e8f7606] | 247 | <term><filename role="library">libtcl&tcl-ver;.so</filename></term>
|
---|
[5cc1126a] | 248 | <listitem>
|
---|
[e8f7606] | 249 | <para>
|
---|
| 250 | contains the API functions required by
|
---|
| 251 | <application>Tcl</application>.
|
---|
| 252 | </para>
|
---|
[5cc1126a] | 253 | <indexterm zone="tcl libtcl">
|
---|
[e8f7606] | 254 | <primary sortas="c-libtcl">libtcl&tcl-ver;.so</primary>
|
---|
[5cc1126a] | 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
| 259 | </variablelist>
|
---|
| 260 |
|
---|
| 261 | </sect2>
|
---|
[c4f1401] | 262 |
|
---|
| 263 | </sect1>
|
---|