[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">
|
---|
[88dd4702] | 8 | <!ENTITY tcl-download-ftp " ">
|
---|
| 9 | <!-- <!ENTITY tcl-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tcl&tcl-version;-src.tar.gz"> -->
|
---|
| 10 | <!ENTITY tcl-md5sum "7480432d8730263f267952788eb4839b">
|
---|
| 11 | <!ENTITY tcl-size "3.5 MB">
|
---|
| 12 | <!ENTITY tcl-buildsize "24.5 MB">
|
---|
| 13 | <!ENTITY tcl-time "0.3 SBU (additional 0.4 SBU to run the test suite)">
|
---|
[52d29f7] | 14 | ]>
|
---|
| 15 |
|
---|
[503b39f] | 16 | <sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
---|
[5cc1126a] | 17 | <?dbhtml filename="tcl.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
[256ee72c] | 22 | <keywordset>
|
---|
| 23 | <keyword role="package">tcl&tcl-version;-src.tar</keyword>
|
---|
[22ac237] | 24 | <keyword role="ftpdir">tcl</keyword>
|
---|
[256ee72c] | 25 | </keywordset>
|
---|
[5cc1126a] | 26 | </sect1info>
|
---|
| 27 |
|
---|
| 28 | <title>Tcl-&tcl-version;</title>
|
---|
| 29 |
|
---|
| 30 | <indexterm zone="tcl">
|
---|
| 31 | <primary sortas="a-Tcl">Tcl</primary>
|
---|
| 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
| 35 | <title>Introduction to Tcl</title>
|
---|
| 36 |
|
---|
[7cd76d62] | 37 | <para>The <application>Tcl</application> package contains the Tool Command
|
---|
[5cc1126a] | 38 | Language, a robust general-purpose scripting language.</para>
|
---|
| 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&tcl-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&tcl-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &tcl-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &tcl-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &tcl-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &tcl-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
[1039de3] | 62 | <para condition="html" role="usernotes">User Notes:
|
---|
| 63 | <ulink url="&blfs-wiki;/tcl"/></para>
|
---|
| 64 |
|
---|
[5cc1126a] | 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 | <sect2 role="installation">
|
---|
| 68 | <title>Installation of Tcl</title>
|
---|
| 69 |
|
---|
| 70 | <note>
|
---|
[bb0e136] | 71 | <para>This package is also installed in LFS during the bootstrap phase.
|
---|
[88dd4702] | 72 | As it is not installed during Chapter 6 of LFS, installation instructions
|
---|
| 73 | are included here in BLFS.</para>
|
---|
[5cc1126a] | 74 | </note>
|
---|
| 75 |
|
---|
[7cd76d62] | 76 | <para>Install <application>Tcl</application> by running the following
|
---|
[5cc1126a] | 77 | commands:</para>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput>export VERSION=&tcl-version; &&
|
---|
[d8614521] | 80 | export V=`echo $VERSION | cut -d "." -f 1,2` &&
|
---|
| 81 | export DIR=$PWD &&
|
---|
[52d29f7] | 82 | cd unix &&
|
---|
[4c34d6e2] | 83 | sed -i "s/relid'/relid/" configure &&
|
---|
[53cdded4] | 84 | ./configure --prefix=/usr --enable-threads &&
|
---|
[52d29f7] | 85 | make &&
|
---|
[4c34d6e2] | 86 | sed -i -e "s:${DIR}/unix:/usr/lib:" \
|
---|
| 87 | -e "s:${DIR}:/usr/include/tcl${V}:" \
|
---|
| 88 | -e "s:^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so':\
|
---|
| 89 | TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\":" tclConfig.sh</userinput></screen>
|
---|
[d8614521] | 90 |
|
---|
[5cc1126a] | 91 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
[fa4bb53] | 92 |
|
---|
[5cc1126a] | 93 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d8614521] | 94 |
|
---|
[daa8f42] | 95 | <caution>
|
---|
[88dd4702] | 96 | <para>If you become the <systemitem class="username">root</systemitem>
|
---|
| 97 | user in a manner that doesn't preserve the unprivileged user's
|
---|
| 98 | environment, ensure you correctly set the environment variable
|
---|
| 99 | <envar>V</envar> again before running the installation commands.</para>
|
---|
[daa8f42] | 100 | </caution>
|
---|
| 101 |
|
---|
[5cc1126a] | 102 | <screen role="root"><userinput>make install &&
|
---|
| 103 | install -v -d /usr/include/tcl${V}/unix &&
|
---|
| 104 | install -v -m644 *.h /usr/include/tcl${V}/unix/ &&
|
---|
| 105 | install -v -d /usr/include/tcl${V}/generic &&
|
---|
| 106 | install -v -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &&
|
---|
| 107 | rm -v -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &&
|
---|
| 108 | ln -v -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &&
|
---|
| 109 | ln -v -sf libtcl${V}.so /usr/lib/libtcl.so &&
|
---|
| 110 | ln -v -sf tclsh${V} /usr/bin/tclsh</userinput></screen>
|
---|
[3b01cdd] | 111 |
|
---|
[7cd76d62] | 112 | <para>Clean up the unprivileged user's environment using the following
|
---|
[5cc1126a] | 113 | commands:</para>
|
---|
[d8614521] | 114 |
|
---|
[5cc1126a] | 115 | <screen><userinput>unset VERSION &&
|
---|
[d8614521] | 116 | unset V &&
|
---|
[5cc1126a] | 117 | unset DIR</userinput></screen>
|
---|
[d8614521] | 118 |
|
---|
[5cc1126a] | 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2 role="commands">
|
---|
| 122 | <title>Command Explanations</title>
|
---|
| 123 |
|
---|
| 124 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
| 125 | to build with thread support.</para>
|
---|
| 126 |
|
---|
[4c34d6e2] | 127 | <para><command>sed -i "s/relid'/relid/" configure</command>: This command
|
---|
| 128 | fixes a syntax error in the <command>configure</command> script.</para>
|
---|
| 129 |
|
---|
| 130 | <para><command>sed -i -e ... tclConfig.sh</command>: The
|
---|
| 131 | <application>Tcl</application> package assumes that the source used to build
|
---|
[7cd76d62] | 132 | <application>Tcl</application> is always kept around for compiling packages
|
---|
[4c34d6e2] | 133 | that depend on <application>Tcl</application>. This <command>sed</command>
|
---|
[4cf3eb1] | 134 | removes the references to the build directory and replaces them with saner
|
---|
[40d6bab] | 135 | system-wide locations.</para>
|
---|
[5cc1126a] | 136 |
|
---|
| 137 | <para><command>install ...</command>: These commands install the internal
|
---|
| 138 | headers into a system-wide location.</para>
|
---|
| 139 |
|
---|
| 140 | <para><command>ln -v -sf ...</command>: These commands create compatibility
|
---|
| 141 | symbolic links.</para>
|
---|
| 142 |
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | <sect2 role="content">
|
---|
| 146 | <title>Contents</title>
|
---|
| 147 |
|
---|
| 148 | <segmentedlist>
|
---|
| 149 | <segtitle>Installed Programs</segtitle>
|
---|
| 150 | <segtitle>Installed Libraries</segtitle>
|
---|
| 151 | <segtitle>Installed Directories</segtitle>
|
---|
| 152 |
|
---|
| 153 | <seglistitem>
|
---|
| 154 | <seg>tclsh and tclsh8.4</seg>
|
---|
| 155 | <seg>libtcl.so and libtclstub8.4.a</seg>
|
---|
| 156 | <seg>/usr/include/tcl8.4 and /usr/lib/tcl8.4</seg>
|
---|
| 157 | </seglistitem>
|
---|
| 158 | </segmentedlist>
|
---|
| 159 |
|
---|
| 160 | <variablelist>
|
---|
| 161 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 162 | <?dbfo list-presentation="list"?>
|
---|
| 163 | <?dbhtml list-presentation="table"?>
|
---|
| 164 |
|
---|
| 165 | <varlistentry id="tclsh">
|
---|
| 166 | <term><command>tclsh</command></term>
|
---|
| 167 | <listitem>
|
---|
[0619e6d] | 168 | <para> is a symlink to the <command>tclsh8.4</command>
|
---|
[5cc1126a] | 169 | program.</para>
|
---|
| 170 | <indexterm zone="tcl tclsh">
|
---|
| 171 | <primary sortas="g-tclsh">tclsh</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
| 175 |
|
---|
| 176 | <varlistentry id="tclsh8.4">
|
---|
| 177 | <term><command>tclsh8.4</command></term>
|
---|
| 178 | <listitem>
|
---|
| 179 | <para> is a simple shell containing the
|
---|
| 180 | <application>Tcl</application> interpreter.</para>
|
---|
| 181 | <indexterm zone="tcl tclsh8.4">
|
---|
| 182 | <primary sortas="b-tclsh8.4">tclsh8.4</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
| 187 | <varlistentry id="libtcl">
|
---|
| 188 | <term><filename role="library">libtcl.so</filename></term>
|
---|
| 189 | <listitem>
|
---|
| 190 | <para>contains the API functions required
|
---|
| 191 | by <application>Tcl</application>.</para>
|
---|
| 192 | <indexterm zone="tcl libtcl">
|
---|
| 193 | <primary sortas="c-libtcl">libtcl.so</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
| 197 |
|
---|
| 198 | </variablelist>
|
---|
| 199 |
|
---|
| 200 | </sect2>
|
---|
[c4f1401] | 201 |
|
---|
| 202 | </sect1>
|
---|