[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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY tcl-download-http "&sourceforge-dl;/tcl/tcl&tcl-version;-src.tar.gz">
|
---|
[c786e55] | 8 | <!ENTITY tcl-download-ftp " ">
|
---|
[92b444d] | 9 | <!ENTITY tcl-md5sum "aa0a121d95a0e7b73a036f26028538d4">
|
---|
| 10 | <!ENTITY tcl-size "9.5 MB">
|
---|
| 11 | <!ENTITY tcl-buildsize "84 MB (including html documentation)">
|
---|
| 12 | <!ENTITY tcl-time "0.6 SBU (add 3.0 SBU for tests)">
|
---|
[4d62032] | 13 |
|
---|
[8dfc5c3] | 14 | <!ENTITY tcl-doc-download "&sourceforge-dl;/tcl/tcl&tcl-version;-html.tar.gz">
|
---|
[92b444d] | 15 | <!ENTITY tcl-doc-md5sum "243da67cca49b9bac0dc6c06fdb42896">
|
---|
[1b3d6bd4] | 16 | <!ENTITY tcl-doc-size "1.2 MB">
|
---|
[5729aff] | 17 |
|
---|
[82fac2c] | 18 | <!-- Ensure this is updated when Tcl moves from the 8.6.x branch -->
|
---|
| 19 | <!ENTITY tcl-ver "8.6">
|
---|
[92b444d] | 20 | <!ENTITY tdbc-ver "1.1.0">
|
---|
| 21 | <!ENTITY itcl-ver "4.1.2">
|
---|
| 22 | <!ENTITY thread-ver "2.8.4">
|
---|
| 23 | <!ENTITY sqlite3-ver "3.25.3">
|
---|
[52d29f7] | 24 | ]>
|
---|
| 25 |
|
---|
[503b39f] | 26 | <sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
---|
[5cc1126a] | 27 | <?dbhtml filename="tcl.html"?>
|
---|
| 28 |
|
---|
| 29 | <sect1info>
|
---|
| 30 | <othername>$LastChangedBy$</othername>
|
---|
| 31 | <date>$Date$</date>
|
---|
| 32 | </sect1info>
|
---|
| 33 |
|
---|
| 34 | <title>Tcl-&tcl-version;</title>
|
---|
| 35 |
|
---|
| 36 | <indexterm zone="tcl">
|
---|
| 37 | <primary sortas="a-Tcl">Tcl</primary>
|
---|
| 38 | </indexterm>
|
---|
| 39 |
|
---|
| 40 | <sect2 role="package">
|
---|
| 41 | <title>Introduction to Tcl</title>
|
---|
| 42 |
|
---|
[e8f7606] | 43 | <para>
|
---|
| 44 | The <application>Tcl</application> package contains the Tool Command
|
---|
| 45 | Language, a robust general-purpose scripting language.
|
---|
| 46 | </para>
|
---|
[5cc1126a] | 47 |
|
---|
[bbe434b] | 48 | &lfs84_checked;
|
---|
[a8d3d55a] | 49 |
|
---|
[5cc1126a] | 50 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 51 | <itemizedlist spacing="compact">
|
---|
| 52 | <listitem>
|
---|
[e8f7606] | 53 | <para>
|
---|
| 54 | Download (HTTP): <ulink url="&tcl-download-http;"/>
|
---|
| 55 | </para>
|
---|
[5cc1126a] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[e8f7606] | 58 | <para>
|
---|
| 59 | Download (FTP): <ulink url="&tcl-download-ftp;"/>
|
---|
| 60 | </para>
|
---|
[5cc1126a] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[e8f7606] | 63 | <para>
|
---|
| 64 | Download MD5 sum: &tcl-md5sum;
|
---|
| 65 | </para>
|
---|
[5cc1126a] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[e8f7606] | 68 | <para>
|
---|
| 69 | Download size: &tcl-size;
|
---|
| 70 | </para>
|
---|
[5cc1126a] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[e8f7606] | 73 | <para>
|
---|
| 74 | Estimated disk space required: &tcl-buildsize;
|
---|
| 75 | </para>
|
---|
[5cc1126a] | 76 | </listitem>
|
---|
| 77 | <listitem>
|
---|
[e8f7606] | 78 | <para>
|
---|
| 79 | Estimated build time: &tcl-time;
|
---|
| 80 | </para>
|
---|
[5cc1126a] | 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
| 83 |
|
---|
[5729aff] | 84 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 85 | <itemizedlist spacing="compact">
|
---|
[0dddae0] | 86 | <title>Optional Documentation</title>
|
---|
[5729aff] | 87 | <listitem>
|
---|
[e8f7606] | 88 | <para>
|
---|
| 89 | Download (HTTP): <ulink url="&tcl-doc-download;"/>
|
---|
| 90 | </para>
|
---|
[5729aff] | 91 | </listitem>
|
---|
| 92 | <listitem>
|
---|
[e8f7606] | 93 | <para>
|
---|
| 94 | Download MD5 sum: &tcl-doc-md5sum;
|
---|
| 95 | </para>
|
---|
[5729aff] | 96 | </listitem>
|
---|
| 97 | <listitem>
|
---|
[e8f7606] | 98 | <para>
|
---|
| 99 | Download size: &tcl-doc-size;
|
---|
| 100 | </para>
|
---|
[5729aff] | 101 | </listitem>
|
---|
| 102 | </itemizedlist>
|
---|
| 103 |
|
---|
[1039de3] | 104 | <para condition="html" role="usernotes">User Notes:
|
---|
[82fac2c] | 105 | <ulink url="&blfs-wiki;/tcl"/>
|
---|
| 106 | </para>
|
---|
[5cc1126a] | 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="installation">
|
---|
| 110 | <title>Installation of Tcl</title>
|
---|
| 111 |
|
---|
[e8f7606] | 112 | <para>
|
---|
| 113 | This package is also installed in LFS during the bootstrap phase.
|
---|
| 114 | As it is not installed during Chapter 6 of LFS, installation instructions
|
---|
| 115 | are included here in BLFS.
|
---|
| 116 | </para>
|
---|
[5cc1126a] | 117 |
|
---|
[e8f7606] | 118 | <para>
|
---|
| 119 | If you downloaded the optional documentation, unpack the tarball
|
---|
| 120 | by issuing the following command:
|
---|
| 121 | </para>
|
---|
[5729aff] | 122 |
|
---|
[d8069d7] | 123 | <screen><userinput>tar -xf ../tcl&tcl-version;-html.tar.gz --strip-components=1</userinput></screen>
|
---|
[5729aff] | 124 |
|
---|
[e8f7606] | 125 | <para>
|
---|
| 126 | Install <application>Tcl</application> by running the following
|
---|
| 127 | commands:
|
---|
| 128 | </para>
|
---|
[5cc1126a] | 129 |
|
---|
[985d9e0] | 130 | <screen><userinput>export SRCDIR=`pwd` &&
|
---|
[85e109d] | 131 |
|
---|
| 132 | cd unix &&
|
---|
| 133 |
|
---|
[dc6ba1c0] | 134 | ./configure --prefix=/usr \
|
---|
[82fac2c] | 135 | --mandir=/usr/share/man \
|
---|
| 136 | $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
|
---|
[206b7a1] | 137 | make &&
|
---|
[4efac57] | 138 |
|
---|
[85e109d] | 139 | sed -e "s#$SRCDIR/unix#/usr/lib#" \
|
---|
| 140 | -e "s#$SRCDIR#/usr/include#" \
|
---|
| 141 | -i tclConfig.sh &&
|
---|
| 142 |
|
---|
[94945733] | 143 | sed -e "s#$SRCDIR/unix/pkgs/tdbc&tdbc-ver;#/usr/lib/tdbc&tdbc-ver;#" \
|
---|
[dd14f24] | 144 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;/generic#/usr/include#" \
|
---|
| 145 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;/library#/usr/lib/tcl8.6#" \
|
---|
[13e5884] | 146 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;#/usr/include#" \
|
---|
[dd14f24] | 147 | -i pkgs/tdbc&tdbc-ver;/tdbcConfig.sh &&
|
---|
[85e109d] | 148 |
|
---|
[dd14f24] | 149 | sed -e "s#$SRCDIR/unix/pkgs/itcl&itcl-ver;#/usr/lib/itcl&itcl-ver;#" \
|
---|
| 150 | -e "s#$SRCDIR/pkgs/itcl&itcl-ver;/generic#/usr/include#" \
|
---|
| 151 | -e "s#$SRCDIR/pkgs/itcl&itcl-ver;#/usr/include#" \
|
---|
| 152 | -i pkgs/itcl&itcl-ver;/itclConfig.sh &&
|
---|
[85e109d] | 153 |
|
---|
| 154 | unset SRCDIR</userinput></screen>
|
---|
| 155 |
|
---|
[d8614521] | 156 |
|
---|
[e8f7606] | 157 | <para>
|
---|
| 158 | To test the results, issue: <command>make test</command>.
|
---|
[92b444d] | 159 | <!-- Tests known to fail: cmdAH.test and tdbcodbc.test. 8.6.9: No
|
---|
| 160 | failures -->
|
---|
[e8f7606] | 161 | </para>
|
---|
[fa4bb53] | 162 |
|
---|
[e8f7606] | 163 | <para>
|
---|
| 164 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 165 | </para>
|
---|
[d8614521] | 166 |
|
---|
[5cc1126a] | 167 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 168 | make install-private-headers &&
|
---|
[dd01532b] | 169 | ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh &&
|
---|
| 170 | chmod -v 755 /usr/lib/libtcl&tcl-ver;.so</userinput></screen>
|
---|
[33fd7e43] | 171 |
|
---|
[e8f7606] | 172 | <para>
|
---|
| 173 | If you downloaded the optional documentation, install it by issuing
|
---|
| 174 | the following commands as the
|
---|
| 175 | <systemitem class="username">root</systemitem> user:
|
---|
| 176 | </para>
|
---|
[5729aff] | 177 |
|
---|
[e8f7606] | 178 | <screen role="root"><userinput>mkdir -v -p /usr/share/doc/tcl-&tcl-version; &&
|
---|
| 179 | cp -v -r ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
|
---|
[d8614521] | 180 |
|
---|
[5cc1126a] | 181 | </sect2>
|
---|
| 182 |
|
---|
| 183 | <sect2 role="commands">
|
---|
| 184 | <title>Command Explanations</title>
|
---|
| 185 |
|
---|
[e8f7606] | 186 | <para>
|
---|
[5a464e4d] | 187 | <parameter>$([ $(uname -m) = x86_64 ] && echo
|
---|
| 188 | --enable-64bit)</parameter>: This switch is used to enable 64 bit
|
---|
[82fac2c] | 189 | support in <application>Tcl</application> on 64 bit operating
|
---|
| 190 | systems.
|
---|
[e8f7606] | 191 | </para>
|
---|
| 192 |
|
---|
| 193 | <para>
|
---|
| 194 | <command>make install-private-headers</command>: This command is
|
---|
| 195 | used to install the <application>Tcl</application> library interface
|
---|
| 196 | headers used by other packages if they link to the
|
---|
| 197 | <application>Tcl</application> library.
|
---|
| 198 | </para>
|
---|
| 199 |
|
---|
| 200 | <para>
|
---|
| 201 | <command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
|
---|
| 202 | command is used to create a compatibility symbolic link to the
|
---|
| 203 | <command>tclsh&tcl-ver;</command> file as many packages expect a file
|
---|
| 204 | named <command>tclsh</command>.
|
---|
| 205 | </para>
|
---|
| 206 |
|
---|
[85e109d] | 207 | <para>
|
---|
| 208 | <command>sed -e ...</command>: The <application>Tcl</application> package
|
---|
| 209 | expects that its source tree is preserved so that packages depending on
|
---|
| 210 | it for their compilation can utilize it. These <command>sed</command>
|
---|
| 211 | remove the references to the build directory and replace them with saner
|
---|
| 212 | system-wide locations.
|
---|
[e8f7606] | 213 | </para>
|
---|
[5cc1126a] | 214 |
|
---|
| 215 | </sect2>
|
---|
| 216 |
|
---|
| 217 | <sect2 role="content">
|
---|
| 218 | <title>Contents</title>
|
---|
| 219 |
|
---|
| 220 | <segmentedlist>
|
---|
| 221 | <segtitle>Installed Programs</segtitle>
|
---|
| 222 | <segtitle>Installed Libraries</segtitle>
|
---|
| 223 | <segtitle>Installed Directories</segtitle>
|
---|
| 224 |
|
---|
| 225 | <seglistitem>
|
---|
[e8f7606] | 226 | <seg>
|
---|
[92b444d] | 227 | sqlite3_analyzer, tclsh, and tclsh&tcl-ver;
|
---|
[e8f7606] | 228 | </seg>
|
---|
| 229 | <seg>
|
---|
| 230 | libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a
|
---|
| 231 | </seg>
|
---|
| 232 | <seg>
|
---|
[92b444d] | 233 | /usr/lib/itcl&itcl-ver;,
|
---|
| 234 | /usr/lib/sqlite&sqlite3-ver;
|
---|
[e8f7606] | 235 | /usr/lib/tcl8,
|
---|
| 236 | /usr/lib/tcl&tcl-ver;,
|
---|
[92b444d] | 237 | /usr/lib/tdbc&tdbc-ver;,
|
---|
| 238 | /usr/lib/tdbcmysql&tdbc-ver;,
|
---|
| 239 | /usr/lib/tdbcodbc&tdbc-ver;,
|
---|
| 240 | /usr/lib/tdbcpostgres&tdbc-ver;,
|
---|
| 241 | /usr/lib/thread&thread-ver;,
|
---|
[dd0c128] | 242 | /usr/share/doc/tcl-&tcl-version;, and
|
---|
[643ea8d7] | 243 | /usr/share/man/mann
|
---|
[e8f7606] | 244 | </seg>
|
---|
[5cc1126a] | 245 | </seglistitem>
|
---|
| 246 | </segmentedlist>
|
---|
| 247 |
|
---|
| 248 | <variablelist>
|
---|
| 249 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 250 | <?dbfo list-presentation="list"?>
|
---|
| 251 | <?dbhtml list-presentation="table"?>
|
---|
| 252 |
|
---|
[92b444d] | 253 | <varlistentry id="sqlite3_analyzer">
|
---|
| 254 | <term><command>sqlite3_analyzer</command></term>
|
---|
| 255 | <listitem>
|
---|
| 256 | <para>
|
---|
| 257 | is a program to analyze sqlite3 database files and output a report
|
---|
| 258 | that gives information on size and storage efficiency for the
|
---|
| 259 | database and it's tables and indexes.
|
---|
| 260 | </para>
|
---|
| 261 | <indexterm zone="tcl sqlite3_analyzer">
|
---|
| 262 | <primary sortas="b-sqlite3_analyzer">sqlite3_analyzer</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
[5cc1126a] | 267 | <varlistentry id="tclsh">
|
---|
| 268 | <term><command>tclsh</command></term>
|
---|
| 269 | <listitem>
|
---|
[e8f7606] | 270 | <para>
|
---|
| 271 | is a symlink to the <command>tclsh&tcl-ver;</command> program.
|
---|
| 272 | </para>
|
---|
[5cc1126a] | 273 | <indexterm zone="tcl tclsh">
|
---|
[b960e3ec] | 274 | <primary sortas="b-tclsh">tclsh</primary>
|
---|
[5cc1126a] | 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
[36f2c9e] | 279 | <varlistentry id="tclsh-eight">
|
---|
| 280 | <term><command>tclsh&tcl-ver;</command></term>
|
---|
[5cc1126a] | 281 | <listitem>
|
---|
[e8f7606] | 282 | <para>
|
---|
| 283 | is a simple shell containing the
|
---|
| 284 | <application>Tcl</application> interpreter.
|
---|
| 285 | </para>
|
---|
[36f2c9e] | 286 | <indexterm zone="tcl tclsh-eight">
|
---|
| 287 | <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
|
---|
[5cc1126a] | 288 | </indexterm>
|
---|
| 289 | </listitem>
|
---|
| 290 | </varlistentry>
|
---|
| 291 |
|
---|
| 292 | <varlistentry id="libtcl">
|
---|
[82fac2c] | 293 | <term><filename class="libraryfile">libtcl&tcl-ver;.so</filename></term>
|
---|
[5cc1126a] | 294 | <listitem>
|
---|
[e8f7606] | 295 | <para>
|
---|
[0d7900a] | 296 | contains the API functions required by
|
---|
[e8f7606] | 297 | <application>Tcl</application>.
|
---|
| 298 | </para>
|
---|
[5cc1126a] | 299 | <indexterm zone="tcl libtcl">
|
---|
[e8f7606] | 300 | <primary sortas="c-libtcl">libtcl&tcl-ver;.so</primary>
|
---|
[5cc1126a] | 301 | </indexterm>
|
---|
| 302 | </listitem>
|
---|
| 303 | </varlistentry>
|
---|
| 304 |
|
---|
| 305 | </variablelist>
|
---|
| 306 |
|
---|
| 307 | </sect2>
|
---|
[c4f1401] | 308 |
|
---|
| 309 | </sect1>
|
---|