[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 |
|
---|
| 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">
|
---|
[23460a6] | 9 | <!ENTITY tcl-md5sum "7e01b409925e4eb59ad44a4c12b9c681">
|
---|
[f3d509e] | 10 | <!ENTITY tcl-size "3.4 MB">
|
---|
[b1fc792b] | 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;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[19aa75a] | 20 | <?dbhtml filename="tcl.html"?>
|
---|
[503b39f] | 21 | <title>Tcl-&tcl-version;</title>
|
---|
[6a2bce2] | 22 | <indexterm zone="tcl">
|
---|
| 23 | <primary sortas="a-Tcl">Tcl</primary></indexterm>
|
---|
[c4f1401] | 24 |
|
---|
[52d29f7] | 25 | <sect2>
|
---|
| 26 | <title>Introduction to <application>Tcl</application></title>
|
---|
[3b01cdd] | 27 |
|
---|
| 28 | <para>The <application>Tcl</application> package contains the Tool Command
|
---|
| 29 | Language, a robust general-purpose scripting language.</para>
|
---|
| 30 |
|
---|
[52d29f7] | 31 | <sect3><title>Package information</title>
|
---|
| 32 | <itemizedlist spacing='compact'>
|
---|
| 33 | <listitem><para>Download (HTTP): <ulink
|
---|
| 34 | url="&tcl-download-http;"/></para></listitem>
|
---|
| 35 | <listitem><para>Download (FTP): <ulink
|
---|
| 36 | url="&tcl-download-ftp;"/></para></listitem>
|
---|
[23460a6] | 37 | <listitem><para>Download MD5 sum: &tcl-md5sum;</para></listitem>
|
---|
[52d29f7] | 38 | <listitem><para>Download size: &tcl-size;</para></listitem>
|
---|
[f3d509e] | 39 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 40 | &tcl-buildsize;</para></listitem>
|
---|
| 41 | <listitem><para>Estimated build time:
|
---|
| 42 | &tcl-time;</para></listitem></itemizedlist>
|
---|
| 43 | </sect3>
|
---|
[3b01cdd] | 44 |
|
---|
[52d29f7] | 45 | </sect2>
|
---|
| 46 |
|
---|
| 47 | <sect2>
|
---|
| 48 | <title>Installation of <application>Tcl</application></title>
|
---|
[3b01cdd] | 49 |
|
---|
[53cdded4] | 50 | <note><para>This package is also installed in <acronym>LFS</acronym> during
|
---|
| 51 | the bootstrap phase. The significant difference between the two installations
|
---|
| 52 | (other than installing to <filename class="directory">/usr</filename>) is the
|
---|
| 53 | package is installed in such a way that there is no need to keep the build
|
---|
[52d29f7] | 54 | directory around after installation.</para></note>
|
---|
[3b01cdd] | 55 |
|
---|
| 56 | <para>Install <application>Tcl</application> by running the following
|
---|
| 57 | commands:</para>
|
---|
| 58 |
|
---|
[d8614521] | 59 | <screen><userinput><command>export VERSION=&tcl-version; &&
|
---|
| 60 | export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 61 | export DIR=$PWD &&
|
---|
[52d29f7] | 62 | cd unix &&
|
---|
[53cdded4] | 63 | ./configure --prefix=/usr --enable-threads &&
|
---|
[52d29f7] | 64 | make &&
|
---|
| 65 | sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &&
|
---|
| 66 | sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &&
|
---|
[8c9ec303] | 67 | sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',\
|
---|
| 68 | TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh</command></userinput></screen>
|
---|
[d8614521] | 69 |
|
---|
[fa4bb53] | 70 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
| 71 |
|
---|
[d8614521] | 72 | <para>Now, as the root user:</para>
|
---|
| 73 |
|
---|
| 74 | <screen><userinput role='root'><command>make install &&
|
---|
[52d29f7] | 75 | install -d /usr/include/tcl${V}/unix &&
|
---|
| 76 | install -m644 *.h /usr/include/tcl${V}/unix/ &&
|
---|
| 77 | install -d /usr/include/tcl${V}/generic &&
|
---|
| 78 | install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
|
---|
| 79 | rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
|
---|
[e2aa32b3] | 80 | ln -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &&
|
---|
[52d29f7] | 81 | ln -sf libtcl${V}.so /usr/lib/libtcl.so &&
|
---|
| 82 | ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
|
---|
[3b01cdd] | 83 |
|
---|
[d8614521] | 84 | <para>Clean up the unprivileged user's environment using the following
|
---|
| 85 | commands:</para>
|
---|
| 86 |
|
---|
| 87 | <screen><userinput><command>unset VERSION &&
|
---|
| 88 | unset V &&
|
---|
| 89 | unset DIR</command></userinput></screen>
|
---|
| 90 |
|
---|
| 91 | <!--
|
---|
[785d6d2f] | 92 | <caution><para>If you build the package as an ordinary user and then switch to
|
---|
[53cdded4] | 93 | root to install the package, ensure you set the environment variables
|
---|
[3b01cdd] | 94 | <envar>V</envar> and <envar>VERSION</envar> before running the installation
|
---|
[785d6d2f] | 95 | commands.</para></caution>
|
---|
[d8614521] | 96 | -->
|
---|
[3b01cdd] | 97 |
|
---|
[52d29f7] | 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2>
|
---|
| 101 | <title>Command explanations</title>
|
---|
[3b01cdd] | 102 |
|
---|
[53cdded4] | 103 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 104 | to build with thread support.</para>
|
---|
| 105 |
|
---|
[52d29f7] | 106 | <para><command>sed -i ...</command>: The <application>Tcl</application>
|
---|
[3b01cdd] | 107 | package assumes that the source that is used to build
|
---|
| 108 | <application>Tcl</application> is always kept around for compiling packages
|
---|
[d8614521] | 109 | that depend on <application>Tcl</application>. These <command>sed</command>s
|
---|
[3b01cdd] | 110 | remove the reference to the build directory and replace them by saner system
|
---|
| 111 | wide locations.</para>
|
---|
| 112 |
|
---|
[52d29f7] | 113 | <para><command>install ...</command>: These commands install the internal
|
---|
| 114 | headers into a system-wide location.</para>
|
---|
[3b01cdd] | 115 |
|
---|
[52d29f7] | 116 | <para><command>ln -sf ...</command>: These commands create compatibility
|
---|
| 117 | symbolic links.</para>
|
---|
[3b01cdd] | 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | <sect2>
|
---|
| 121 | <title>Contents</title>
|
---|
[53cdded4] | 122 |
|
---|
[bad8b53] | 123 | <segmentedlist>
|
---|
[b1fc792b] | 124 | <segtitle>Installed Programs</segtitle>
|
---|
[d8614521] | 125 | <segtitle>Installed Libraries</segtitle>
|
---|
[bad8b53] | 126 | <segtitle>Installed Directories</segtitle>
|
---|
[b1fc792b] | 127 |
|
---|
[bad8b53] | 128 | <seglistitem>
|
---|
[b1fc792b] | 129 | <seg>tclsh and tclsh8.4</seg>
|
---|
[d8614521] | 130 | <seg>libtcl.so and libtclstub8.4.a</seg>
|
---|
[b1fc792b] | 131 | <seg>/usr/include/tcl8.4 and /usr/lib/tcl8.4</seg>
|
---|
| 132 | </seglistitem>
|
---|
[bad8b53] | 133 | </segmentedlist>
|
---|
| 134 |
|
---|
| 135 | <variablelist>
|
---|
| 136 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 137 | <?dbfo list-presentation="list"?>
|
---|
| 138 |
|
---|
| 139 | <varlistentry id="tclsh">
|
---|
| 140 | <term><command>tclsh</command></term>
|
---|
[b1fc792b] | 141 | <listitem><para> is a symlink to the <command>tclsh8.4</command>
|
---|
| 142 | program.</para>
|
---|
| 143 | <indexterm zone="tcl tclsh">
|
---|
| 144 | <primary sortas="g-tclsh">tclsh</primary></indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="tclsh8.4">
|
---|
| 149 | <term><command>tclsh8.4</command></term>
|
---|
[bad8b53] | 150 | <listitem><para> is a simple shell containing the
|
---|
| 151 | <application>Tcl</application> interpreter.</para>
|
---|
[b1fc792b] | 152 | <indexterm zone="tcl tclsh8.4">
|
---|
| 153 | <primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
|
---|
[bad8b53] | 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
| 156 |
|
---|
| 157 | <varlistentry id="libtcl">
|
---|
| 158 | <term><filename role="library">libtcl.so</filename></term>
|
---|
| 159 | <listitem><para>contains the <acronym>API</acronym> functions required
|
---|
| 160 | by <application>Tcl</application>.</para>
|
---|
[6a2bce2] | 161 | <indexterm zone="tcl libtcl">
|
---|
| 162 | <primary sortas="c-libtcl">libtcl.so</primary></indexterm>
|
---|
[bad8b53] | 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 | </variablelist>
|
---|
[53cdded4] | 166 |
|
---|
[52d29f7] | 167 | </sect2>
|
---|
[c4f1401] | 168 |
|
---|
| 169 | </sect1>
|
---|