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