[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 " ">
|
---|
[8c5b0070] | 9 | <!ENTITY tcl-md5sum "97c55573f8520bcab74e21bfd8d0aadc">
|
---|
| 10 | <!ENTITY tcl-size "9.7 MB">
|
---|
| 11 | <!ENTITY tcl-buildsize "67 MB (including html documentation)">
|
---|
| 12 | <!ENTITY tcl-time "0.7 SBU (add 2.7 SBU for tests)">
|
---|
[4d62032] | 13 |
|
---|
[8dfc5c3] | 14 | <!ENTITY tcl-doc-download "&sourceforge-dl;/tcl/tcl&tcl-version;-html.tar.gz">
|
---|
[8c5b0070] | 15 | <!ENTITY tcl-doc-md5sum "a012711241ba3a5bd4a04e833001d489">
|
---|
[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">
|
---|
[8c5b0070] | 20 | <!ENTITY tdbc-ver "1.1.1">
|
---|
| 21 | <!ENTITY itcl-ver "4.2.0">
|
---|
| 22 | <!ENTITY thread-ver "2.8.5">
|
---|
| 23 | <!ENTITY sqlite3-ver "3.30.1.2">
|
---|
[52d29f7] | 24 | ]>
|
---|
| 25 |
|
---|
[503b39f] | 26 | <sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
---|
[5cc1126a] | 27 | <?dbhtml filename="tcl.html"?>
|
---|
| 28 |
|
---|
| 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 |
|
---|
[66c4901f] | 44 | &lfs91_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:
|
---|
[82fac2c] | 101 | <ulink url="&blfs-wiki;/tcl"/>
|
---|
| 102 | </para>
|
---|
[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 |
|
---|
[985d9e0] | 126 | <screen><userinput>export SRCDIR=`pwd` &&
|
---|
[85e109d] | 127 |
|
---|
| 128 | cd unix &&
|
---|
| 129 |
|
---|
[dc6ba1c0] | 130 | ./configure --prefix=/usr \
|
---|
[82fac2c] | 131 | --mandir=/usr/share/man \
|
---|
| 132 | $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
|
---|
[206b7a1] | 133 | make &&
|
---|
[4efac57] | 134 |
|
---|
[85e109d] | 135 | sed -e "s#$SRCDIR/unix#/usr/lib#" \
|
---|
| 136 | -e "s#$SRCDIR#/usr/include#" \
|
---|
| 137 | -i tclConfig.sh &&
|
---|
| 138 |
|
---|
[94945733] | 139 | sed -e "s#$SRCDIR/unix/pkgs/tdbc&tdbc-ver;#/usr/lib/tdbc&tdbc-ver;#" \
|
---|
[dd14f24] | 140 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;/generic#/usr/include#" \
|
---|
| 141 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;/library#/usr/lib/tcl8.6#" \
|
---|
[13e5884] | 142 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;#/usr/include#" \
|
---|
[dd14f24] | 143 | -i pkgs/tdbc&tdbc-ver;/tdbcConfig.sh &&
|
---|
[85e109d] | 144 |
|
---|
[dd14f24] | 145 | sed -e "s#$SRCDIR/unix/pkgs/itcl&itcl-ver;#/usr/lib/itcl&itcl-ver;#" \
|
---|
| 146 | -e "s#$SRCDIR/pkgs/itcl&itcl-ver;/generic#/usr/include#" \
|
---|
| 147 | -e "s#$SRCDIR/pkgs/itcl&itcl-ver;#/usr/include#" \
|
---|
| 148 | -i pkgs/itcl&itcl-ver;/itclConfig.sh &&
|
---|
[85e109d] | 149 |
|
---|
| 150 | unset SRCDIR</userinput></screen>
|
---|
| 151 |
|
---|
[d8614521] | 152 |
|
---|
[e8f7606] | 153 | <para>
|
---|
| 154 | To test the results, issue: <command>make test</command>.
|
---|
[92b444d] | 155 | <!-- Tests known to fail: cmdAH.test and tdbcodbc.test. 8.6.9: No
|
---|
| 156 | failures -->
|
---|
[e8f7606] | 157 | </para>
|
---|
[fa4bb53] | 158 |
|
---|
[e8f7606] | 159 | <para>
|
---|
| 160 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 161 | </para>
|
---|
[d8614521] | 162 |
|
---|
[5cc1126a] | 163 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 164 | make install-private-headers &&
|
---|
[dd01532b] | 165 | ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh &&
|
---|
| 166 | chmod -v 755 /usr/lib/libtcl&tcl-ver;.so</userinput></screen>
|
---|
[33fd7e43] | 167 |
|
---|
[e8f7606] | 168 | <para>
|
---|
| 169 | If you downloaded the optional documentation, install it by issuing
|
---|
| 170 | the following commands as the
|
---|
| 171 | <systemitem class="username">root</systemitem> user:
|
---|
| 172 | </para>
|
---|
[5729aff] | 173 |
|
---|
[e8f7606] | 174 | <screen role="root"><userinput>mkdir -v -p /usr/share/doc/tcl-&tcl-version; &&
|
---|
| 175 | cp -v -r ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
|
---|
[d8614521] | 176 |
|
---|
[5cc1126a] | 177 | </sect2>
|
---|
| 178 |
|
---|
| 179 | <sect2 role="commands">
|
---|
| 180 | <title>Command Explanations</title>
|
---|
| 181 |
|
---|
[e8f7606] | 182 | <para>
|
---|
[5a464e4d] | 183 | <parameter>$([ $(uname -m) = x86_64 ] && echo
|
---|
| 184 | --enable-64bit)</parameter>: This switch is used to enable 64 bit
|
---|
[82fac2c] | 185 | support in <application>Tcl</application> on 64 bit operating
|
---|
| 186 | systems.
|
---|
[e8f7606] | 187 | </para>
|
---|
| 188 |
|
---|
| 189 | <para>
|
---|
| 190 | <command>make install-private-headers</command>: This command is
|
---|
| 191 | used to install the <application>Tcl</application> library interface
|
---|
| 192 | headers used by other packages if they link to the
|
---|
| 193 | <application>Tcl</application> library.
|
---|
| 194 | </para>
|
---|
| 195 |
|
---|
| 196 | <para>
|
---|
| 197 | <command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
|
---|
| 198 | command is used to create a compatibility symbolic link to the
|
---|
| 199 | <command>tclsh&tcl-ver;</command> file as many packages expect a file
|
---|
| 200 | named <command>tclsh</command>.
|
---|
| 201 | </para>
|
---|
| 202 |
|
---|
[85e109d] | 203 | <para>
|
---|
| 204 | <command>sed -e ...</command>: The <application>Tcl</application> package
|
---|
| 205 | expects that its source tree is preserved so that packages depending on
|
---|
| 206 | it for their compilation can utilize it. These <command>sed</command>
|
---|
| 207 | remove the references to the build directory and replace them with saner
|
---|
| 208 | system-wide locations.
|
---|
[e8f7606] | 209 | </para>
|
---|
[5cc1126a] | 210 |
|
---|
| 211 | </sect2>
|
---|
| 212 |
|
---|
| 213 | <sect2 role="content">
|
---|
| 214 | <title>Contents</title>
|
---|
| 215 |
|
---|
| 216 | <segmentedlist>
|
---|
| 217 | <segtitle>Installed Programs</segtitle>
|
---|
| 218 | <segtitle>Installed Libraries</segtitle>
|
---|
| 219 | <segtitle>Installed Directories</segtitle>
|
---|
| 220 |
|
---|
| 221 | <seglistitem>
|
---|
[e8f7606] | 222 | <seg>
|
---|
[92b444d] | 223 | sqlite3_analyzer, tclsh, and tclsh&tcl-ver;
|
---|
[e8f7606] | 224 | </seg>
|
---|
| 225 | <seg>
|
---|
| 226 | libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a
|
---|
| 227 | </seg>
|
---|
| 228 | <seg>
|
---|
[92b444d] | 229 | /usr/lib/itcl&itcl-ver;,
|
---|
| 230 | /usr/lib/sqlite&sqlite3-ver;
|
---|
[e8f7606] | 231 | /usr/lib/tcl8,
|
---|
| 232 | /usr/lib/tcl&tcl-ver;,
|
---|
[92b444d] | 233 | /usr/lib/tdbc&tdbc-ver;,
|
---|
| 234 | /usr/lib/tdbcmysql&tdbc-ver;,
|
---|
| 235 | /usr/lib/tdbcodbc&tdbc-ver;,
|
---|
| 236 | /usr/lib/tdbcpostgres&tdbc-ver;,
|
---|
| 237 | /usr/lib/thread&thread-ver;,
|
---|
[dd0c128] | 238 | /usr/share/doc/tcl-&tcl-version;, and
|
---|
[643ea8d7] | 239 | /usr/share/man/mann
|
---|
[e8f7606] | 240 | </seg>
|
---|
[5cc1126a] | 241 | </seglistitem>
|
---|
| 242 | </segmentedlist>
|
---|
| 243 |
|
---|
| 244 | <variablelist>
|
---|
| 245 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 246 | <?dbfo list-presentation="list"?>
|
---|
| 247 | <?dbhtml list-presentation="table"?>
|
---|
| 248 |
|
---|
[92b444d] | 249 | <varlistentry id="sqlite3_analyzer">
|
---|
| 250 | <term><command>sqlite3_analyzer</command></term>
|
---|
| 251 | <listitem>
|
---|
| 252 | <para>
|
---|
| 253 | is a program to analyze sqlite3 database files and output a report
|
---|
| 254 | that gives information on size and storage efficiency for the
|
---|
| 255 | database and it's tables and indexes.
|
---|
| 256 | </para>
|
---|
| 257 | <indexterm zone="tcl sqlite3_analyzer">
|
---|
| 258 | <primary sortas="b-sqlite3_analyzer">sqlite3_analyzer</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
[5cc1126a] | 263 | <varlistentry id="tclsh">
|
---|
| 264 | <term><command>tclsh</command></term>
|
---|
| 265 | <listitem>
|
---|
[e8f7606] | 266 | <para>
|
---|
| 267 | is a symlink to the <command>tclsh&tcl-ver;</command> program.
|
---|
| 268 | </para>
|
---|
[5cc1126a] | 269 | <indexterm zone="tcl tclsh">
|
---|
[b960e3ec] | 270 | <primary sortas="b-tclsh">tclsh</primary>
|
---|
[5cc1126a] | 271 | </indexterm>
|
---|
| 272 | </listitem>
|
---|
| 273 | </varlistentry>
|
---|
| 274 |
|
---|
[36f2c9e] | 275 | <varlistentry id="tclsh-eight">
|
---|
| 276 | <term><command>tclsh&tcl-ver;</command></term>
|
---|
[5cc1126a] | 277 | <listitem>
|
---|
[e8f7606] | 278 | <para>
|
---|
| 279 | is a simple shell containing the
|
---|
| 280 | <application>Tcl</application> interpreter.
|
---|
| 281 | </para>
|
---|
[36f2c9e] | 282 | <indexterm zone="tcl tclsh-eight">
|
---|
| 283 | <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
|
---|
[5cc1126a] | 284 | </indexterm>
|
---|
| 285 | </listitem>
|
---|
| 286 | </varlistentry>
|
---|
| 287 |
|
---|
| 288 | <varlistentry id="libtcl">
|
---|
[82fac2c] | 289 | <term><filename class="libraryfile">libtcl&tcl-ver;.so</filename></term>
|
---|
[5cc1126a] | 290 | <listitem>
|
---|
[e8f7606] | 291 | <para>
|
---|
[0d7900a] | 292 | contains the API functions required by
|
---|
[e8f7606] | 293 | <application>Tcl</application>.
|
---|
| 294 | </para>
|
---|
[5cc1126a] | 295 | <indexterm zone="tcl libtcl">
|
---|
[e8f7606] | 296 | <primary sortas="c-libtcl">libtcl&tcl-ver;.so</primary>
|
---|
[5cc1126a] | 297 | </indexterm>
|
---|
| 298 | </listitem>
|
---|
| 299 | </varlistentry>
|
---|
| 300 |
|
---|
| 301 | </variablelist>
|
---|
| 302 |
|
---|
| 303 | </sect2>
|
---|
[c4f1401] | 304 |
|
---|
| 305 | </sect1>
|
---|