[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[5cc1126a] | 7 | <!ENTITY tcl-download-http "http://prdownloads.sourceforge.net/tcl/tcl&tcl-version;-src.tar.gz">
|
---|
[906cca2] | 8 | <!ENTITY tcl-download-ftp " ">
|
---|
| 9 | <!-- <!ENTITY tcl-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tcl&tcl-version;-src.tar.gz">-->
|
---|
| 10 | <!ENTITY tcl-md5sum "629dfea34e4087eb4683f834060abb63">
|
---|
[5cc1126a] | 11 | <!ENTITY tcl-size "3.4 MB">
|
---|
[906cca2] | 12 | <!ENTITY tcl-buildsize "22.5 MB">
|
---|
| 13 | <!ENTITY tcl-time "0.3 SBU (additional 0.9 SBU to run the test suite)">
|
---|
[52d29f7] | 14 | ]>
|
---|
| 15 |
|
---|
[503b39f] | 16 | <sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
---|
[5cc1126a] | 17 | <?dbhtml filename="tcl.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>Tcl-&tcl-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="tcl">
|
---|
| 27 | <primary sortas="a-Tcl">Tcl</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to Tcl</title>
|
---|
| 32 |
|
---|
[7cd76d62] | 33 | <para>The <application>Tcl</application> package contains the Tool Command
|
---|
[5cc1126a] | 34 | Language, a robust general-purpose scripting language.</para>
|
---|
| 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&tcl-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&tcl-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &tcl-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &tcl-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &tcl-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &tcl-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
| 58 | </sect2>
|
---|
| 59 |
|
---|
| 60 | <sect2 role="installation">
|
---|
| 61 | <title>Installation of Tcl</title>
|
---|
| 62 |
|
---|
| 63 | <note>
|
---|
[bb0e136] | 64 | <para>This package is also installed in LFS during the bootstrap phase.
|
---|
| 65 | At the time of the LFS-6.1 release, &tcl-version; was not available. The
|
---|
| 66 | significant difference between the two installations (other than
|
---|
| 67 | installing to <filename class="directory">/usr</filename>) is that the
|
---|
| 68 | package is installed in such a way that there is no need to keep the build
|
---|
[5cc1126a] | 69 | directory around after installation.</para>
|
---|
| 70 | </note>
|
---|
| 71 |
|
---|
[7cd76d62] | 72 | <para>Install <application>Tcl</application> by running the following
|
---|
[5cc1126a] | 73 | commands:</para>
|
---|
| 74 |
|
---|
| 75 | <screen><userinput>export VERSION=&tcl-version; &&
|
---|
[d8614521] | 76 | export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 77 | export DIR=$PWD &&
|
---|
[52d29f7] | 78 | cd unix &&
|
---|
[53cdded4] | 79 | ./configure --prefix=/usr --enable-threads &&
|
---|
[52d29f7] | 80 | make &&
|
---|
| 81 | sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &&
|
---|
| 82 | sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &&
|
---|
[8c9ec303] | 83 | sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',\
|
---|
[5cc1126a] | 84 | TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh</userinput></screen>
|
---|
[d8614521] | 85 |
|
---|
[5cc1126a] | 86 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
[fa4bb53] | 87 |
|
---|
[5cc1126a] | 88 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d8614521] | 89 |
|
---|
[daa8f42] | 90 | <caution>
|
---|
| 91 | <para>If you don't use <command>su</command> to become the
|
---|
| 92 | <systemitem class="username">root</systemitem> user, ensure you set the
|
---|
| 93 | environment variables <envar>VERSION</envar> and <envar>V</envar> again
|
---|
| 94 | before running the installation commands.</para>
|
---|
| 95 | </caution>
|
---|
| 96 |
|
---|
[5cc1126a] | 97 | <screen role="root"><userinput>make install &&
|
---|
| 98 | install -v -d /usr/include/tcl${V}/unix &&
|
---|
| 99 | install -v -m644 *.h /usr/include/tcl${V}/unix/ &&
|
---|
| 100 | install -v -d /usr/include/tcl${V}/generic &&
|
---|
| 101 | install -v -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
|
---|
| 102 | rm -v -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
|
---|
| 103 | ln -v -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &&
|
---|
| 104 | ln -v -sf libtcl${V}.so /usr/lib/libtcl.so &&
|
---|
| 105 | ln -v -sf tclsh${V} /usr/bin/tclsh</userinput></screen>
|
---|
[3b01cdd] | 106 |
|
---|
[7cd76d62] | 107 | <para>Clean up the unprivileged user's environment using the following
|
---|
[5cc1126a] | 108 | commands:</para>
|
---|
[d8614521] | 109 |
|
---|
[5cc1126a] | 110 | <screen><userinput>unset VERSION &&
|
---|
[d8614521] | 111 | unset V &&
|
---|
[5cc1126a] | 112 | unset DIR</userinput></screen>
|
---|
[d8614521] | 113 |
|
---|
[5cc1126a] | 114 | </sect2>
|
---|
| 115 |
|
---|
| 116 | <sect2 role="commands">
|
---|
| 117 | <title>Command Explanations</title>
|
---|
| 118 |
|
---|
| 119 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 120 | to build with thread support.</para>
|
---|
| 121 |
|
---|
| 122 | <para><command>sed -i ...</command>: The <application>Tcl</application>
|
---|
[40d6bab] | 123 | package assumes that the source used to build
|
---|
[7cd76d62] | 124 | <application>Tcl</application> is always kept around for compiling packages
|
---|
| 125 | that depend on <application>Tcl</application>. These <command>sed</command>s
|
---|
[40d6bab] | 126 | remove the reference to the build directory and replace them by saner
|
---|
| 127 | system-wide locations.</para>
|
---|
[5cc1126a] | 128 |
|
---|
| 129 | <para><command>install ...</command>: These commands install the internal
|
---|
| 130 | headers into a system-wide location.</para>
|
---|
| 131 |
|
---|
| 132 | <para><command>ln -v -sf ...</command>: These commands create compatibility
|
---|
| 133 | symbolic links.</para>
|
---|
| 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="content">
|
---|
| 138 | <title>Contents</title>
|
---|
| 139 |
|
---|
| 140 | <segmentedlist>
|
---|
| 141 | <segtitle>Installed Programs</segtitle>
|
---|
| 142 | <segtitle>Installed Libraries</segtitle>
|
---|
| 143 | <segtitle>Installed Directories</segtitle>
|
---|
| 144 |
|
---|
| 145 | <seglistitem>
|
---|
| 146 | <seg>tclsh and tclsh8.4</seg>
|
---|
| 147 | <seg>libtcl.so and libtclstub8.4.a</seg>
|
---|
| 148 | <seg>/usr/include/tcl8.4 and /usr/lib/tcl8.4</seg>
|
---|
| 149 | </seglistitem>
|
---|
| 150 | </segmentedlist>
|
---|
| 151 |
|
---|
| 152 | <variablelist>
|
---|
| 153 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 154 | <?dbfo list-presentation="list"?>
|
---|
| 155 | <?dbhtml list-presentation="table"?>
|
---|
| 156 |
|
---|
| 157 | <varlistentry id="tclsh">
|
---|
| 158 | <term><command>tclsh</command></term>
|
---|
| 159 | <listitem>
|
---|
[0619e6d] | 160 | <para> is a symlink to the <command>tclsh8.4</command>
|
---|
[5cc1126a] | 161 | program.</para>
|
---|
| 162 | <indexterm zone="tcl tclsh">
|
---|
| 163 | <primary sortas="g-tclsh">tclsh</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="tclsh8.4">
|
---|
| 169 | <term><command>tclsh8.4</command></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para> is a simple shell containing the
|
---|
| 172 | <application>Tcl</application> interpreter.</para>
|
---|
| 173 | <indexterm zone="tcl tclsh8.4">
|
---|
| 174 | <primary sortas="b-tclsh8.4">tclsh8.4</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="libtcl">
|
---|
| 180 | <term><filename role="library">libtcl.so</filename></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>contains the API functions required
|
---|
| 183 | by <application>Tcl</application>.</para>
|
---|
| 184 | <indexterm zone="tcl libtcl">
|
---|
| 185 | <primary sortas="c-libtcl">libtcl.so</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
| 190 | </variablelist>
|
---|
| 191 |
|
---|
| 192 | </sect2>
|
---|
[c4f1401] | 193 |
|
---|
| 194 | </sect1>
|
---|