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