[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 |
|
---|
[5cc1126a] | 90 | <screen role="root"><userinput>make install &&
|
---|
| 91 | install -v -d /usr/include/tcl${V}/unix &&
|
---|
| 92 | install -v -m644 *.h /usr/include/tcl${V}/unix/ &&
|
---|
| 93 | install -v -d /usr/include/tcl${V}/generic &&
|
---|
| 94 | install -v -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
|
---|
| 95 | rm -v -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
|
---|
| 96 | ln -v -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &&
|
---|
| 97 | ln -v -sf libtcl${V}.so /usr/lib/libtcl.so &&
|
---|
| 98 | ln -v -sf tclsh${V} /usr/bin/tclsh</userinput></screen>
|
---|
[3b01cdd] | 99 |
|
---|
[7cd76d62] | 100 | <para>Clean up the unprivileged user's environment using the following
|
---|
[5cc1126a] | 101 | commands:</para>
|
---|
[d8614521] | 102 |
|
---|
[5cc1126a] | 103 | <screen><userinput>unset VERSION &&
|
---|
[d8614521] | 104 | unset V &&
|
---|
[5cc1126a] | 105 | unset DIR</userinput></screen>
|
---|
[d8614521] | 106 |
|
---|
| 107 | <!--
|
---|
[5cc1126a] | 108 | <caution>
|
---|
[7cd76d62] | 109 | <para>If you build the package as an ordinary user and then switch to
|
---|
| 110 | root to install the package, ensure you set the environment variables
|
---|
| 111 | <envar>V</envar> and <envar>VERSION</envar> before running the installation
|
---|
[5cc1126a] | 112 | commands.</para>
|
---|
| 113 | </caution>
|
---|
[d8614521] | 114 | -->
|
---|
[3b01cdd] | 115 |
|
---|
[5cc1126a] | 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="commands">
|
---|
| 119 | <title>Command Explanations</title>
|
---|
| 120 |
|
---|
| 121 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 122 | to build with thread support.</para>
|
---|
| 123 |
|
---|
| 124 | <para><command>sed -i ...</command>: The <application>Tcl</application>
|
---|
[7cd76d62] | 125 | package assumes that the source that is used to build
|
---|
| 126 | <application>Tcl</application> is always kept around for compiling packages
|
---|
| 127 | that depend on <application>Tcl</application>. These <command>sed</command>s
|
---|
| 128 | remove the reference to the build directory and replace them by saner system
|
---|
[5cc1126a] | 129 | wide locations.</para>
|
---|
| 130 |
|
---|
| 131 | <para><command>install ...</command>: These commands install the internal
|
---|
| 132 | headers into a system-wide location.</para>
|
---|
| 133 |
|
---|
| 134 | <para><command>ln -v -sf ...</command>: These commands create compatibility
|
---|
| 135 | symbolic links.</para>
|
---|
| 136 |
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="content">
|
---|
| 140 | <title>Contents</title>
|
---|
| 141 |
|
---|
| 142 | <segmentedlist>
|
---|
| 143 | <segtitle>Installed Programs</segtitle>
|
---|
| 144 | <segtitle>Installed Libraries</segtitle>
|
---|
| 145 | <segtitle>Installed Directories</segtitle>
|
---|
| 146 |
|
---|
| 147 | <seglistitem>
|
---|
| 148 | <seg>tclsh and tclsh8.4</seg>
|
---|
| 149 | <seg>libtcl.so and libtclstub8.4.a</seg>
|
---|
| 150 | <seg>/usr/include/tcl8.4 and /usr/lib/tcl8.4</seg>
|
---|
| 151 | </seglistitem>
|
---|
| 152 | </segmentedlist>
|
---|
| 153 |
|
---|
| 154 | <variablelist>
|
---|
| 155 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 156 | <?dbfo list-presentation="list"?>
|
---|
| 157 | <?dbhtml list-presentation="table"?>
|
---|
| 158 |
|
---|
| 159 | <varlistentry id="tclsh">
|
---|
| 160 | <term><command>tclsh</command></term>
|
---|
| 161 | <listitem>
|
---|
[0619e6d] | 162 | <para> is a symlink to the <command>tclsh8.4</command>
|
---|
[5cc1126a] | 163 | program.</para>
|
---|
| 164 | <indexterm zone="tcl tclsh">
|
---|
| 165 | <primary sortas="g-tclsh">tclsh</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="tclsh8.4">
|
---|
| 171 | <term><command>tclsh8.4</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para> is a simple shell containing the
|
---|
| 174 | <application>Tcl</application> interpreter.</para>
|
---|
| 175 | <indexterm zone="tcl tclsh8.4">
|
---|
| 176 | <primary sortas="b-tclsh8.4">tclsh8.4</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
| 181 | <varlistentry id="libtcl">
|
---|
| 182 | <term><filename role="library">libtcl.so</filename></term>
|
---|
| 183 | <listitem>
|
---|
| 184 | <para>contains the API functions required
|
---|
| 185 | by <application>Tcl</application>.</para>
|
---|
| 186 | <indexterm zone="tcl libtcl">
|
---|
| 187 | <primary sortas="c-libtcl">libtcl.so</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
| 192 | </variablelist>
|
---|
| 193 |
|
---|
| 194 | </sect2>
|
---|
[c4f1401] | 195 |
|
---|
| 196 | </sect1>
|
---|