[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">
|
---|
| 8 | <!ENTITY tcl-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tcl&tcl-version;-src.tar.gz">
|
---|
| 9 | <!ENTITY tcl-md5sum "7e01b409925e4eb59ad44a4c12b9c681">
|
---|
| 10 | <!ENTITY tcl-size "3.4 MB">
|
---|
| 11 | <!ENTITY tcl-buildsize "24.2 MB">
|
---|
| 12 | <!ENTITY tcl-time "0.28 SBU (additional 0.73 SBU to run the test suite)">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[503b39f] | 15 | <sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
---|
[5cc1126a] | 16 | <?dbhtml filename="tcl.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Tcl-&tcl-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="tcl">
|
---|
| 26 | <primary sortas="a-Tcl">Tcl</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Tcl</title>
|
---|
| 31 |
|
---|
[7cd76d62] | 32 | <para>The <application>Tcl</application> package contains the Tool Command
|
---|
[5cc1126a] | 33 | Language, a robust general-purpose scripting language.</para>
|
---|
| 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>Download (HTTP): <ulink url="&tcl-download-http;"/></para>
|
---|
| 39 | </listitem>
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (FTP): <ulink url="&tcl-download-ftp;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download MD5 sum: &tcl-md5sum;</para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download size: &tcl-size;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Estimated disk space required: &tcl-buildsize;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated build time: &tcl-time;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | </itemizedlist>
|
---|
| 56 |
|
---|
| 57 | </sect2>
|
---|
| 58 |
|
---|
| 59 | <sect2 role="installation">
|
---|
| 60 | <title>Installation of Tcl</title>
|
---|
| 61 |
|
---|
| 62 | <note>
|
---|
[7cd76d62] | 63 | <para>This package is also installed in LFS during
|
---|
| 64 | the bootstrap phase. The significant difference between the two installations
|
---|
[5cc1126a] | 65 | (other than installing to <filename class="directory">/usr</filename>) is that
|
---|
| 66 | the package is installed in such a way that there is no need to keep the build
|
---|
| 67 | directory around after installation.</para>
|
---|
| 68 | </note>
|
---|
| 69 |
|
---|
[7cd76d62] | 70 | <para>Install <application>Tcl</application> by running the following
|
---|
[5cc1126a] | 71 | commands:</para>
|
---|
| 72 |
|
---|
| 73 | <screen><userinput>export VERSION=&tcl-version; &&
|
---|
[d8614521] | 74 | export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 75 | export DIR=$PWD &&
|
---|
[52d29f7] | 76 | cd unix &&
|
---|
[53cdded4] | 77 | ./configure --prefix=/usr --enable-threads &&
|
---|
[52d29f7] | 78 | make &&
|
---|
| 79 | sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &&
|
---|
| 80 | sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &&
|
---|
[8c9ec303] | 81 | sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',\
|
---|
[5cc1126a] | 82 | TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh</userinput></screen>
|
---|
[d8614521] | 83 |
|
---|
[5cc1126a] | 84 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
[fa4bb53] | 85 |
|
---|
[5cc1126a] | 86 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d8614521] | 87 |
|
---|
[5cc1126a] | 88 | <screen role="root"><userinput>make install &&
|
---|
| 89 | install -v -d /usr/include/tcl${V}/unix &&
|
---|
| 90 | install -v -m644 *.h /usr/include/tcl${V}/unix/ &&
|
---|
| 91 | install -v -d /usr/include/tcl${V}/generic &&
|
---|
| 92 | install -v -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
|
---|
| 93 | rm -v -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
|
---|
| 94 | ln -v -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &&
|
---|
| 95 | ln -v -sf libtcl${V}.so /usr/lib/libtcl.so &&
|
---|
| 96 | ln -v -sf tclsh${V} /usr/bin/tclsh</userinput></screen>
|
---|
[3b01cdd] | 97 |
|
---|
[7cd76d62] | 98 | <para>Clean up the unprivileged user's environment using the following
|
---|
[5cc1126a] | 99 | commands:</para>
|
---|
[d8614521] | 100 |
|
---|
[5cc1126a] | 101 | <screen><userinput>unset VERSION &&
|
---|
[d8614521] | 102 | unset V &&
|
---|
[5cc1126a] | 103 | unset DIR</userinput></screen>
|
---|
[d8614521] | 104 |
|
---|
| 105 | <!--
|
---|
[5cc1126a] | 106 | <caution>
|
---|
[7cd76d62] | 107 | <para>If you build the package as an ordinary user and then switch to
|
---|
| 108 | root to install the package, ensure you set the environment variables
|
---|
| 109 | <envar>V</envar> and <envar>VERSION</envar> before running the installation
|
---|
[5cc1126a] | 110 | commands.</para>
|
---|
| 111 | </caution>
|
---|
[d8614521] | 112 | -->
|
---|
[3b01cdd] | 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>
|
---|
[7cd76d62] | 123 | package assumes that the source that is used to build
|
---|
| 124 | <application>Tcl</application> is always kept around for compiling packages
|
---|
| 125 | that depend on <application>Tcl</application>. These <command>sed</command>s
|
---|
| 126 | remove the reference to the build directory and replace them by saner system
|
---|
[5cc1126a] | 127 | wide locations.</para>
|
---|
| 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>
|
---|