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