[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 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">
|
---|
[53cdded4] | 9 | <!ENTITY tcl-size "3.5 MB">
|
---|
| 10 | <!ENTITY tcl-buildsize "34 MB">
|
---|
[52d29f7] | 11 | <!ENTITY tcl-time "0.27 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
[503b39f] | 14 | <sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[19aa75a] | 19 | <?dbhtml filename="tcl.html"?>
|
---|
[503b39f] | 20 | <title>Tcl-&tcl-version;</title>
|
---|
[c4f1401] | 21 |
|
---|
[52d29f7] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>Tcl</application></title>
|
---|
[3b01cdd] | 24 |
|
---|
| 25 | <para>The <application>Tcl</application> package contains the Tool Command
|
---|
| 26 | Language, a robust general-purpose scripting language.</para>
|
---|
| 27 |
|
---|
[52d29f7] | 28 | <sect3><title>Package information</title>
|
---|
| 29 | <itemizedlist spacing='compact'>
|
---|
| 30 | <listitem><para>Download (HTTP): <ulink
|
---|
| 31 | url="&tcl-download-http;"/></para></listitem>
|
---|
| 32 | <listitem><para>Download (FTP): <ulink
|
---|
| 33 | url="&tcl-download-ftp;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download size: &tcl-size;</para></listitem>
|
---|
| 35 | <listitem><para>Estimated Disk space required:
|
---|
| 36 | &tcl-buildsize;</para></listitem>
|
---|
| 37 | <listitem><para>Estimated build time:
|
---|
| 38 | &tcl-time;</para></listitem></itemizedlist>
|
---|
| 39 | </sect3>
|
---|
[3b01cdd] | 40 |
|
---|
[52d29f7] | 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2>
|
---|
| 44 | <title>Installation of <application>Tcl</application></title>
|
---|
[3b01cdd] | 45 |
|
---|
[53cdded4] | 46 | <note><para>This package is also installed in <acronym>LFS</acronym> during
|
---|
| 47 | the bootstrap phase. The significant difference between the two installations
|
---|
| 48 | (other than installing to <filename class="directory">/usr</filename>) is the
|
---|
| 49 | package is installed in such a way that there is no need to keep the build
|
---|
[52d29f7] | 50 | directory around after installation.</para></note>
|
---|
[3b01cdd] | 51 |
|
---|
| 52 | <para>Install <application>Tcl</application> by running the following
|
---|
| 53 | commands:</para>
|
---|
| 54 |
|
---|
[52d29f7] | 55 | <screen><userinput><command>VERSION=&tcl-version; &&
|
---|
| 56 | V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 57 | DIR=$PWD &&
|
---|
| 58 | cd unix &&
|
---|
[53cdded4] | 59 | ./configure --prefix=/usr --enable-threads &&
|
---|
[52d29f7] | 60 | make &&
|
---|
| 61 | sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &&
|
---|
| 62 | sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &&
|
---|
| 63 | sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," \
|
---|
| 64 | tclConfig.sh &&
|
---|
| 65 | mv ../doc/{,Tcl_}Thread.3 &&
|
---|
| 66 | sed -i 's/ Thread.3/ Tcl_Thread.3/' mkLinks &&
|
---|
| 67 | make install &&
|
---|
| 68 | install -d /usr/include/tcl${V}/unix &&
|
---|
| 69 | install -m644 *.h /usr/include/tcl${V}/unix/ &&
|
---|
| 70 | install -d /usr/include/tcl${V}/generic &&
|
---|
| 71 | install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
|
---|
| 72 | rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
|
---|
[e2aa32b3] | 73 | ln -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &&
|
---|
[52d29f7] | 74 | ln -sf libtcl${V}.so /usr/lib/libtcl.so &&
|
---|
| 75 | ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
|
---|
[3b01cdd] | 76 |
|
---|
[53cdded4] | 77 | <note><para>If you build the package as an ordinary user and then switch to
|
---|
| 78 | root to install the package, ensure you set the environment variables
|
---|
[3b01cdd] | 79 | <envar>V</envar> and <envar>VERSION</envar> before running the installation
|
---|
| 80 | commands.</para></note>
|
---|
| 81 |
|
---|
[52d29f7] | 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2>
|
---|
| 85 | <title>Command explanations</title>
|
---|
[3b01cdd] | 86 |
|
---|
[53cdded4] | 87 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 88 | to build with thread support.</para>
|
---|
| 89 |
|
---|
[52d29f7] | 90 | <para><command>sed -i ...</command>: The <application>Tcl</application>
|
---|
[3b01cdd] | 91 | package assumes that the source that is used to build
|
---|
| 92 | <application>Tcl</application> is always kept around for compiling packages
|
---|
| 93 | that depend on <application>Tcl</application>. These <command>sed</command>'s
|
---|
| 94 | remove the reference to the build directory and replace them by saner system
|
---|
| 95 | wide locations.</para>
|
---|
| 96 |
|
---|
[52d29f7] | 97 | <para><command>install ...</command>: These commands install the internal
|
---|
| 98 | headers into a system-wide location.</para>
|
---|
[3b01cdd] | 99 |
|
---|
[52d29f7] | 100 | <para><command>ln -sf ...</command>: These commands create compatibility
|
---|
| 101 | symbolic links.</para>
|
---|
[3b01cdd] | 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2>
|
---|
| 105 | <title>Contents</title>
|
---|
[53cdded4] | 106 |
|
---|
[3b01cdd] | 107 | <para>The <application>Tcl</application> package contains
|
---|
[53cdded4] | 108 | <command>tclsh</command>, the
|
---|
| 109 | <filename class='libraryfile'>libtcl</filename> libraries and miscellaneous
|
---|
| 110 | tools and scripts.</para>
|
---|
| 111 |
|
---|
[3b01cdd] | 112 | </sect2>
|
---|
[53cdded4] | 113 |
|
---|
[3b01cdd] | 114 | <sect2><title>Description</title>
|
---|
[53cdded4] | 115 |
|
---|
[3b01cdd] | 116 | <sect3><title>tclsh</title>
|
---|
| 117 | <para><command>tclsh</command> is a simple shell containing the
|
---|
| 118 | <application>Tcl</application> interpreter.</para></sect3>
|
---|
[53cdded4] | 119 |
|
---|
[52d29f7] | 120 | </sect2>
|
---|
[c4f1401] | 121 |
|
---|
| 122 | </sect1>
|
---|