[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 " ">
|
---|
[dce6561] | 9 | <!ENTITY tcl-md5sum "0e6426a4ca9401825fbc6ecf3d89a326">
|
---|
| 10 | <!ENTITY tcl-size "9.8 MB">
|
---|
| 11 | <!ENTITY tcl-buildsize "68 MB (add 13MB for html documentation)">
|
---|
| 12 | <!ENTITY tcl-time "0.8 SBU (additional 2.4 SBU for the tests)">
|
---|
[4d62032] | 13 |
|
---|
[5729aff] | 14 | <!ENTITY tcl-doc-download "&sourceforge-repo;/tcl/tcl&tcl-version;-html.tar.gz">
|
---|
[dce6561] | 15 | <!ENTITY tcl-doc-md5sum "fc7abd3409c95c18193489d57fdc55d">
|
---|
[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">
|
---|
[dce6561] | 20 | <!ENTITY tdbc-ver "1.0.4">
|
---|
| 21 | <!ENTITY itcl-ver "4.0.4">
|
---|
[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 |
|
---|
[4c845f18] | 46 | &lfs79_checked;
|
---|
[a8d3d55a] | 47 |
|
---|
[6d27308] | 48 | &gcc6_checked;
|
---|
| 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 |
|
---|
[ac38e9dc] | 130 | <screen><userinput>export SRCDIR=`pwd` &&
|
---|
| 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 &&
|
---|
[5729aff] | 138 |
|
---|
[ac38e9dc] | 139 | sed -e "s#$SRCDIR/unix#/usr/lib#" \
|
---|
| 140 | -e "s#$SRCDIR#/usr/include#" \
|
---|
| 141 | -i tclConfig.sh &&
|
---|
| 142 |
|
---|
| 143 | sed -e "s#$SRCDIR/unix/pkgs/tdbc&tdbc-ver;#/usr/lib/tdbc&tdbc-ver;#" \
|
---|
| 144 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;/generic#/usr/include#" \
|
---|
| 145 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;/library#/usr/lib/tcl8.6#" \
|
---|
| 146 | -e "s#$SRCDIR/pkgs/tdbc&tdbc-ver;#/usr/include#" \
|
---|
| 147 | -i pkgs/tdbc&tdbc-ver;/tdbcConfig.sh &&
|
---|
| 148 |
|
---|
| 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 &&
|
---|
| 153 |
|
---|
| 154 | unset SRCDIR</userinput></screen>
|
---|
| 155 |
|
---|
[d8614521] | 156 |
|
---|
[e8f7606] | 157 | <para>
|
---|
| 158 | To test the results, issue: <command>make test</command>.
|
---|
| 159 | </para>
|
---|
[fa4bb53] | 160 |
|
---|
[e8f7606] | 161 | <para>
|
---|
| 162 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 163 | </para>
|
---|
[d8614521] | 164 |
|
---|
[5cc1126a] | 165 | <screen role="root"><userinput>make install &&
|
---|
[33fd7e43] | 166 | make install-private-headers &&
|
---|
[2037ec4] | 167 | ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh &&
|
---|
[dd01532b] | 168 | chmod -v 755 /usr/lib/libtcl&tcl-ver;.so</userinput></screen>
|
---|
[33fd7e43] | 169 |
|
---|
[e8f7606] | 170 | <para>
|
---|
| 171 | If you downloaded the optional documentation, install it by issuing
|
---|
| 172 | the following commands as the
|
---|
| 173 | <systemitem class="username">root</systemitem> user:
|
---|
| 174 | </para>
|
---|
[5729aff] | 175 |
|
---|
[e8f7606] | 176 | <screen role="root"><userinput>mkdir -v -p /usr/share/doc/tcl-&tcl-version; &&
|
---|
| 177 | cp -v -r ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
|
---|
[d8614521] | 178 |
|
---|
[5cc1126a] | 179 | </sect2>
|
---|
| 180 |
|
---|
| 181 | <sect2 role="commands">
|
---|
| 182 | <title>Command Explanations</title>
|
---|
| 183 |
|
---|
[e8f7606] | 184 | <para>
|
---|
[5a464e4d] | 185 | <parameter>$([ $(uname -m) = x86_64 ] && echo
|
---|
| 186 | --enable-64bit)</parameter>: This switch is used to enable 64 bit
|
---|
[82fac2c] | 187 | support in <application>Tcl</application> on 64 bit operating
|
---|
| 188 | systems.
|
---|
[e8f7606] | 189 | </para>
|
---|
| 190 |
|
---|
| 191 | <para>
|
---|
| 192 | <command>make install-private-headers</command>: This command is
|
---|
| 193 | used to install the <application>Tcl</application> library interface
|
---|
| 194 | headers used by other packages if they link to the
|
---|
| 195 | <application>Tcl</application> library.
|
---|
| 196 | </para>
|
---|
| 197 |
|
---|
| 198 | <para>
|
---|
| 199 | <command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
|
---|
| 200 | command is used to create a compatibility symbolic link to the
|
---|
| 201 | <command>tclsh&tcl-ver;</command> file as many packages expect a file
|
---|
| 202 | named <command>tclsh</command>.
|
---|
| 203 | </para>
|
---|
| 204 |
|
---|
| 205 | <para>
|
---|
[ac38e9dc] | 206 | <command>sed -e ...</command>: The <application>Tcl</application> package
|
---|
| 207 | expects that its source tree is preserved so that packages depending on
|
---|
| 208 | it for their compilation can utilize it. These <command>sed</command>
|
---|
| 209 | remove the references to the build directory and replace them with saner
|
---|
| 210 | system-wide locations.
|
---|
[e8f7606] | 211 | </para>
|
---|
[5cc1126a] | 212 |
|
---|
| 213 | </sect2>
|
---|
| 214 |
|
---|
| 215 | <sect2 role="content">
|
---|
| 216 | <title>Contents</title>
|
---|
| 217 |
|
---|
| 218 | <segmentedlist>
|
---|
| 219 | <segtitle>Installed Programs</segtitle>
|
---|
| 220 | <segtitle>Installed Libraries</segtitle>
|
---|
| 221 | <segtitle>Installed Directories</segtitle>
|
---|
| 222 |
|
---|
| 223 | <seglistitem>
|
---|
[e8f7606] | 224 | <seg>
|
---|
| 225 | tclsh and tclsh&tcl-ver;
|
---|
| 226 | </seg>
|
---|
| 227 | <seg>
|
---|
| 228 | libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a
|
---|
| 229 | </seg>
|
---|
| 230 | <seg>
|
---|
[5b1ab58] | 231 | /usr/lib/itcl4.0.1,
|
---|
[ac38e9dc] | 232 | /usr/lib/sqlite3.8.6
|
---|
[e8f7606] | 233 | /usr/lib/tcl8,
|
---|
| 234 | /usr/lib/tcl&tcl-ver;,
|
---|
[5b1ab58] | 235 | /usr/lib/tdbc1.0.1,
|
---|
| 236 | /usr/lib/tdbcmysql1.0.1,
|
---|
| 237 | /usr/lib/tdbcodbc1.0.1,
|
---|
| 238 | /usr/lib/tdbcpostgres1.0.1,
|
---|
| 239 | /usr/lib/thread2.7.1,
|
---|
[ac38e9dc] | 240 | /usr/share/doc/tcl-&tcl-version;, and
|
---|
[5b1ab58] | 241 | /usr/share/man/mann
|
---|
[e8f7606] | 242 | </seg>
|
---|
[5cc1126a] | 243 | </seglistitem>
|
---|
| 244 | </segmentedlist>
|
---|
| 245 |
|
---|
| 246 | <variablelist>
|
---|
| 247 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 248 | <?dbfo list-presentation="list"?>
|
---|
| 249 | <?dbhtml list-presentation="table"?>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="tclsh">
|
---|
| 252 | <term><command>tclsh</command></term>
|
---|
| 253 | <listitem>
|
---|
[e8f7606] | 254 | <para>
|
---|
| 255 | is a symlink to the <command>tclsh&tcl-ver;</command> program.
|
---|
| 256 | </para>
|
---|
[5cc1126a] | 257 | <indexterm zone="tcl tclsh">
|
---|
[b960e3ec] | 258 | <primary sortas="b-tclsh">tclsh</primary>
|
---|
[5cc1126a] | 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
[36f2c9e] | 263 | <varlistentry id="tclsh-eight">
|
---|
| 264 | <term><command>tclsh&tcl-ver;</command></term>
|
---|
[5cc1126a] | 265 | <listitem>
|
---|
[e8f7606] | 266 | <para>
|
---|
| 267 | is a simple shell containing the
|
---|
| 268 | <application>Tcl</application> interpreter.
|
---|
| 269 | </para>
|
---|
[36f2c9e] | 270 | <indexterm zone="tcl tclsh-eight">
|
---|
| 271 | <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
|
---|
[5cc1126a] | 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | <varlistentry id="libtcl">
|
---|
[82fac2c] | 277 | <term><filename class="libraryfile">libtcl&tcl-ver;.so</filename></term>
|
---|
[5cc1126a] | 278 | <listitem>
|
---|
[e8f7606] | 279 | <para>
|
---|
[0d7900a] | 280 | contains the API functions required by
|
---|
[e8f7606] | 281 | <application>Tcl</application>.
|
---|
| 282 | </para>
|
---|
[5cc1126a] | 283 | <indexterm zone="tcl libtcl">
|
---|
[e8f7606] | 284 | <primary sortas="c-libtcl">libtcl&tcl-ver;.so</primary>
|
---|
[5cc1126a] | 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
| 289 | </variablelist>
|
---|
| 290 |
|
---|
| 291 | </sect2>
|
---|
[c4f1401] | 292 |
|
---|
| 293 | </sect1>
|
---|