[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;">
|
---|
[19aa75a] | 16 | <?dbhtml filename="tcl.html"?>
|
---|
[503b39f] | 17 | <title>Tcl-&tcl-version;</title>
|
---|
[c4f1401] | 18 |
|
---|
[52d29f7] | 19 | <sect2>
|
---|
| 20 | <title>Introduction to <application>Tcl</application></title>
|
---|
| 21 |
|
---|
| 22 | <para>The <application>Tcl</application> package contains Tool Command Language. </para>
|
---|
| 23 |
|
---|
| 24 | <sect3><title>Package information</title>
|
---|
| 25 | <itemizedlist spacing='compact'>
|
---|
| 26 | <listitem><para>Download (HTTP): <ulink
|
---|
| 27 | url="&tcl-download-http;"/></para></listitem>
|
---|
| 28 | <listitem><para>Download (FTP): <ulink
|
---|
| 29 | url="&tcl-download-ftp;"/></para></listitem>
|
---|
| 30 | <listitem><para>Download size: &tcl-size;</para></listitem>
|
---|
| 31 | <listitem><para>Estimated Disk space required:
|
---|
| 32 | &tcl-buildsize;</para></listitem>
|
---|
| 33 | <listitem><para>Estimated build time:
|
---|
| 34 | &tcl-time;</para></listitem></itemizedlist>
|
---|
| 35 | </sect3>
|
---|
| 36 |
|
---|
| 37 | </sect2>
|
---|
| 38 |
|
---|
| 39 | <sect2>
|
---|
| 40 | <title>Installation of <application>Tcl</application></title>
|
---|
| 41 |
|
---|
| 42 | <note><para>This package is also installed in <acronym>LFS</acronym>
|
---|
| 43 | during the bootstrap phase. The significant difference between the
|
---|
| 44 | two installations (other than installing to <filename class="directory">/usr</filename>) is to install
|
---|
| 45 | the package in such a way that there is no need to keep the build
|
---|
| 46 | directory around after installation.</para></note>
|
---|
| 47 |
|
---|
| 48 | <para>Install <application>Tcl</application> by running the following commands:</para>
|
---|
| 49 |
|
---|
| 50 | <screen><userinput><command>VERSION=&tcl-version; &&
|
---|
| 51 | V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 52 | DIR=$PWD &&
|
---|
| 53 | cd unix &&
|
---|
| 54 | ./configure --prefix=/usr &&
|
---|
| 55 | make &&
|
---|
| 56 | sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &&
|
---|
| 57 | sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &&
|
---|
| 58 | sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," \
|
---|
| 59 | tclConfig.sh &&
|
---|
| 60 | mv ../doc/{,Tcl_}Thread.3 &&
|
---|
| 61 | sed -i 's/ Thread.3/ Tcl_Thread.3/' mkLinks &&
|
---|
| 62 | make install &&
|
---|
| 63 | install -d /usr/include/tcl${V}/unix &&
|
---|
| 64 | install -m644 *.h /usr/include/tcl${V}/unix/ &&
|
---|
| 65 | install -d /usr/include/tcl${V}/generic &&
|
---|
| 66 | install -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
|
---|
| 67 | rm -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
|
---|
| 68 | ln -nsf /usr/include/tcl${V} /usr/lib/tcl${V}/include &&
|
---|
| 69 | ln -sf libtcl${V}.so /usr/lib/libtcl.so &&
|
---|
| 70 | ln -sf tclsh${V} /usr/bin/tclsh</command></userinput></screen>
|
---|
| 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2>
|
---|
| 75 | <title>Command explanations</title>
|
---|
| 76 |
|
---|
| 77 | <para><command>sed -i ...</command>: The <application>Tcl</application>
|
---|
| 78 | package assumes that the source that is used to build <application>Tcl
|
---|
| 79 | </application> is always kept around for compiling packages that depend on
|
---|
| 80 | <application>Tcl</application>. These <command>sed</command>'s remove the
|
---|
| 81 | reference to the build directory and replace them by saner system wide
|
---|
| 82 | locations.</para>
|
---|
| 83 |
|
---|
| 84 | <para><command>install ...</command>: These commands install the internal
|
---|
| 85 | headers into a system-wide location.</para>
|
---|
| 86 |
|
---|
| 87 | <para><command>ln -sf ...</command>: These commands create compatibility
|
---|
| 88 | symbolic links.</para>
|
---|
| 89 |
|
---|
| 90 | </sect2>
|
---|
[c4f1401] | 91 |
|
---|
| 92 | </sect1>
|
---|