[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 " ">
|
---|
[dd14f24] | 9 | <!ENTITY tcl-md5sum "d7cbb91f1ded1919370a30edd1534304">
|
---|
[643ea8d7] | 10 | <!ENTITY tcl-size "8.5 MB">
|
---|
[dd14f24] | 11 | <!ENTITY tcl-buildsize "69 MB (includes documentation installation)(add 10MB for tests)">
|
---|
| 12 | <!ENTITY tcl-time "0.4 SBU (using parallelism=8, additional 0.5 SBU for the tests)">
|
---|
[4d62032] | 13 |
|
---|
[5729aff] | 14 | <!ENTITY tcl-doc-download "&sourceforge-repo;/tcl/tcl&tcl-version;-html.tar.gz">
|
---|
[dd14f24] | 15 | <!ENTITY tcl-doc-md5sum "62647d87e9244a4d521c6547e097007c">
|
---|
[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">
|
---|
[dd14f24] | 20 | <!ENTITY tdbc-ver "1.0.3">
|
---|
| 21 | <!ENTITY itcl-ver "4.0.3">
|
---|
[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 |
|
---|
[57945e0] | 46 | &lfs77_checked; &gcc5_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:
|
---|
[82fac2c] | 103 | <ulink url="&blfs-wiki;/tcl"/>
|
---|
| 104 | </para>
|
---|
[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 |
|
---|
[985d9e0] | 128 | <screen><userinput>export SRCDIR=`pwd` &&
|
---|
[85e109d] | 129 |
|
---|
| 130 | cd unix &&
|
---|
| 131 |
|
---|
[dc6ba1c0] | 132 | ./configure --prefix=/usr \
|
---|
[82fac2c] | 133 | --mandir=/usr/share/man \
|
---|
| 134 | $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
|
---|
[206b7a1] | 135 | make &&
|
---|
[4efac57] | 136 |
|
---|
[85e109d] | 137 | sed -e "s#$SRCDIR/unix#/usr/lib#" \
|
---|
| 138 | -e "s#$SRCDIR#/usr/include#" \
|
---|
| 139 | -i tclConfig.sh &&
|
---|
| 140 |
|
---|
[94945733] | 141 | sed -e "s#$SRCDIR/unix/pkgs/tdbc&tdbc-ver;#/usr/lib/tdbc&tdbc-ver;#" \
|
---|
[dd14f24] | 142 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;/generic#/usr/include#" \
|
---|
| 143 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;/library#/usr/lib/tcl8.6#" \
|
---|
[13e5884] | 144 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;#/usr/include#" \
|
---|
[dd14f24] | 145 | -i pkgs/tdbc&tdbc-ver;/tdbcConfig.sh &&
|
---|
[85e109d] | 146 |
|
---|
[dd14f24] | 147 | sed -e "s#$SRCDIR/unix/pkgs/itcl&itcl-ver;#/usr/lib/itcl&itcl-ver;#" \
|
---|
| 148 | -e "s#$SRCDIR/pkgs/itcl&itcl-ver;/generic#/usr/include#" \
|
---|
| 149 | -e "s#$SRCDIR/pkgs/itcl&itcl-ver;#/usr/include#" \
|
---|
| 150 | -i pkgs/itcl&itcl-ver;/itclConfig.sh &&
|
---|
[85e109d] | 151 |
|
---|
| 152 | unset SRCDIR</userinput></screen>
|
---|
| 153 |
|
---|
[d8614521] | 154 |
|
---|
[e8f7606] | 155 | <para>
|
---|
| 156 | To test the results, issue: <command>make test</command>.
|
---|
| 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 |
|
---|
[6c64623f] | 182 | <para>
|
---|
| 183 | <option>--without-tzdata</option>: This switch prevents installation
|
---|
| 184 | of the shipped timezone data which are older than the ones provided
|
---|
| 185 | in LFS.
|
---|
| 186 | </para>
|
---|
| 187 |
|
---|
[e8f7606] | 188 | <para>
|
---|
[5a464e4d] | 189 | <parameter>$([ $(uname -m) = x86_64 ] && echo
|
---|
| 190 | --enable-64bit)</parameter>: This switch is used to enable 64 bit
|
---|
[82fac2c] | 191 | support in <application>Tcl</application> on 64 bit operating
|
---|
| 192 | systems.
|
---|
[e8f7606] | 193 | </para>
|
---|
| 194 |
|
---|
| 195 | <para>
|
---|
| 196 | <command>make install-private-headers</command>: This command is
|
---|
| 197 | used to install the <application>Tcl</application> library interface
|
---|
| 198 | headers used by other packages if they link to the
|
---|
| 199 | <application>Tcl</application> library.
|
---|
| 200 | </para>
|
---|
| 201 |
|
---|
| 202 | <para>
|
---|
| 203 | <command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
|
---|
| 204 | command is used to create a compatibility symbolic link to the
|
---|
| 205 | <command>tclsh&tcl-ver;</command> file as many packages expect a file
|
---|
| 206 | named <command>tclsh</command>.
|
---|
| 207 | </para>
|
---|
| 208 |
|
---|
[85e109d] | 209 | <para>
|
---|
| 210 | <command>sed -e ...</command>: The <application>Tcl</application> package
|
---|
| 211 | expects that its source tree is preserved so that packages depending on
|
---|
| 212 | it for their compilation can utilize it. These <command>sed</command>
|
---|
| 213 | remove the references to the build directory and replace them with saner
|
---|
| 214 | system-wide locations.
|
---|
[e8f7606] | 215 | </para>
|
---|
[5cc1126a] | 216 |
|
---|
| 217 | </sect2>
|
---|
| 218 |
|
---|
| 219 | <sect2 role="content">
|
---|
| 220 | <title>Contents</title>
|
---|
| 221 |
|
---|
| 222 | <segmentedlist>
|
---|
| 223 | <segtitle>Installed Programs</segtitle>
|
---|
| 224 | <segtitle>Installed Libraries</segtitle>
|
---|
| 225 | <segtitle>Installed Directories</segtitle>
|
---|
| 226 |
|
---|
| 227 | <seglistitem>
|
---|
[e8f7606] | 228 | <seg>
|
---|
| 229 | tclsh and tclsh&tcl-ver;
|
---|
| 230 | </seg>
|
---|
| 231 | <seg>
|
---|
| 232 | libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a
|
---|
| 233 | </seg>
|
---|
| 234 | <seg>
|
---|
[643ea8d7] | 235 | /usr/lib/itcl4.0.1,
|
---|
[985d9e0] | 236 | /usr/lib/sqlite3.8.6
|
---|
[e8f7606] | 237 | /usr/lib/tcl8,
|
---|
| 238 | /usr/lib/tcl&tcl-ver;,
|
---|
[643ea8d7] | 239 | /usr/lib/tdbc1.0.1,
|
---|
| 240 | /usr/lib/tdbcmysql1.0.1,
|
---|
| 241 | /usr/lib/tdbcodbc1.0.1,
|
---|
| 242 | /usr/lib/tdbcpostgres1.0.1,
|
---|
| 243 | /usr/lib/thread2.7.1,
|
---|
[dd0c128] | 244 | /usr/share/doc/tcl-&tcl-version;, and
|
---|
[643ea8d7] | 245 | /usr/share/man/mann
|
---|
[e8f7606] | 246 | </seg>
|
---|
[5cc1126a] | 247 | </seglistitem>
|
---|
| 248 | </segmentedlist>
|
---|
| 249 |
|
---|
| 250 | <variablelist>
|
---|
| 251 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 252 | <?dbfo list-presentation="list"?>
|
---|
| 253 | <?dbhtml list-presentation="table"?>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="tclsh">
|
---|
| 256 | <term><command>tclsh</command></term>
|
---|
| 257 | <listitem>
|
---|
[e8f7606] | 258 | <para>
|
---|
| 259 | is a symlink to the <command>tclsh&tcl-ver;</command> program.
|
---|
| 260 | </para>
|
---|
[5cc1126a] | 261 | <indexterm zone="tcl tclsh">
|
---|
[b960e3ec] | 262 | <primary sortas="b-tclsh">tclsh</primary>
|
---|
[5cc1126a] | 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
[36f2c9e] | 267 | <varlistentry id="tclsh-eight">
|
---|
| 268 | <term><command>tclsh&tcl-ver;</command></term>
|
---|
[5cc1126a] | 269 | <listitem>
|
---|
[e8f7606] | 270 | <para>
|
---|
| 271 | is a simple shell containing the
|
---|
| 272 | <application>Tcl</application> interpreter.
|
---|
| 273 | </para>
|
---|
[36f2c9e] | 274 | <indexterm zone="tcl tclsh-eight">
|
---|
| 275 | <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
|
---|
[5cc1126a] | 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
| 280 | <varlistentry id="libtcl">
|
---|
[82fac2c] | 281 | <term><filename class="libraryfile">libtcl&tcl-ver;.so</filename></term>
|
---|
[5cc1126a] | 282 | <listitem>
|
---|
[e8f7606] | 283 | <para>
|
---|
[0d7900a] | 284 | contains the API functions required by
|
---|
[e8f7606] | 285 | <application>Tcl</application>.
|
---|
| 286 | </para>
|
---|
[5cc1126a] | 287 | <indexterm zone="tcl libtcl">
|
---|
[e8f7606] | 288 | <primary sortas="c-libtcl">libtcl&tcl-ver;.so</primary>
|
---|
[5cc1126a] | 289 | </indexterm>
|
---|
| 290 | </listitem>
|
---|
| 291 | </varlistentry>
|
---|
| 292 |
|
---|
| 293 | </variablelist>
|
---|
| 294 |
|
---|
| 295 | </sect2>
|
---|
[c4f1401] | 296 |
|
---|
| 297 | </sect1>
|
---|