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