1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY tcl-download-http "&sourceforge-repo;/tcl/tcl&tcl-version;-src.tar.gz">
|
---|
8 | <!ENTITY tcl-download-ftp "&gentoo-ftp-repo;/tcl&tcl-version;-src.tar.gz">
|
---|
9 | <!ENTITY tcl-md5sum "a08eaf8467c0631937067c1948dd326b">
|
---|
10 | <!ENTITY tcl-size "4.3 MB">
|
---|
11 | <!ENTITY tcl-buildsize "47 MB (includes documentation installation)">
|
---|
12 | <!ENTITY tcl-time "0.4 SBU">
|
---|
13 |
|
---|
14 | <!ENTITY tcl-doc-download "&sourceforge-repo;/tcl/tcl&tcl-version;-html.tar.gz">
|
---|
15 | <!ENTITY tcl-doc-md5sum "3b5cf7f3dffe534bda80fb826937034a">
|
---|
16 | <!ENTITY tcl-doc-size "912 KB">
|
---|
17 |
|
---|
18 | <!-- Ensure this is updated when Tcl moves from the 8.5.x branch -->
|
---|
19 | <!ENTITY tcl-ver "8.5">
|
---|
20 | ]>
|
---|
21 |
|
---|
22 | <sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
|
---|
23 | <?dbhtml filename="tcl.html"?>
|
---|
24 |
|
---|
25 | <sect1info>
|
---|
26 | <othername>$LastChangedBy$</othername>
|
---|
27 | <date>$Date$</date>
|
---|
28 | </sect1info>
|
---|
29 |
|
---|
30 | <title>Tcl-&tcl-version;</title>
|
---|
31 |
|
---|
32 | <indexterm zone="tcl">
|
---|
33 | <primary sortas="a-Tcl">Tcl</primary>
|
---|
34 | </indexterm>
|
---|
35 |
|
---|
36 | <sect2 role="package">
|
---|
37 | <title>Introduction to Tcl</title>
|
---|
38 |
|
---|
39 | <para>The <application>Tcl</application> package contains the Tool Command
|
---|
40 | Language, a robust general-purpose scripting language.</para>
|
---|
41 |
|
---|
42 | &lfs70_checked;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>Download (HTTP): <ulink url="&tcl-download-http;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download (FTP): <ulink url="&tcl-download-ftp;"/></para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download MD5 sum: &tcl-md5sum;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Download size: &tcl-size;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Estimated disk space required: &tcl-buildsize;</para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>Estimated build time: &tcl-time;</para>
|
---|
63 | </listitem>
|
---|
64 | </itemizedlist>
|
---|
65 |
|
---|
66 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
67 | <itemizedlist spacing="compact">
|
---|
68 | <title>Optional Documentation</title>
|
---|
69 | <listitem>
|
---|
70 | <para>Download (HTTP): <ulink url="&tcl-doc-download;"/></para>
|
---|
71 | </listitem>
|
---|
72 | <listitem>
|
---|
73 | <para>Download MD5 sum: &tcl-doc-md5sum;</para>
|
---|
74 | </listitem>
|
---|
75 | <listitem>
|
---|
76 | <para>Download size: &tcl-doc-size;</para>
|
---|
77 | </listitem>
|
---|
78 | </itemizedlist>
|
---|
79 |
|
---|
80 | <para condition="html" role="usernotes">User Notes:
|
---|
81 | <ulink url="&blfs-wiki;/tcl"/></para>
|
---|
82 |
|
---|
83 | </sect2>
|
---|
84 |
|
---|
85 | <sect2 role="installation">
|
---|
86 | <title>Installation of Tcl</title>
|
---|
87 |
|
---|
88 | <para>This package is also installed in LFS during the bootstrap phase.
|
---|
89 | As it is not installed during Chapter 6 of LFS, installation instructions
|
---|
90 | are included here in BLFS.</para>
|
---|
91 |
|
---|
92 | <para>If you downloaded the optional documentation, unpack the tarball
|
---|
93 | by issuing the following command:</para>
|
---|
94 |
|
---|
95 | <screen><userinput>tar -xf ../tcl&tcl-version;-html.tar.gz --strip-components=1</userinput></screen>
|
---|
96 |
|
---|
97 | <para>Install <application>Tcl</application> by running the following
|
---|
98 | commands:</para>
|
---|
99 |
|
---|
100 | <screen><userinput>cd unix &&
|
---|
101 | ./configure --prefix=/usr \
|
---|
102 | --enable-threads \
|
---|
103 | --mandir=/usr/share/man &&
|
---|
104 | make &&
|
---|
105 |
|
---|
106 | sed -i \
|
---|
107 | -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
108 | -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
|
---|
109 | tclConfig.sh</userinput></screen>
|
---|
110 |
|
---|
111 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
112 |
|
---|
113 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
114 |
|
---|
115 | <screen role="root"><userinput>make install &&
|
---|
116 | make install-private-headers &&
|
---|
117 | ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh &&
|
---|
118 | chmod -v 755 /usr/lib/libtcl&tcl-ver;.so</userinput></screen>
|
---|
119 |
|
---|
120 | <para>If you downloaded the optional documentation, install it by issuing
|
---|
121 | the following commands as the
|
---|
122 | <systemitem class="username">root</systemitem> user:</para>
|
---|
123 |
|
---|
124 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/tcl-&tcl-version; &&
|
---|
125 | cp -v -R ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
|
---|
126 |
|
---|
127 | </sect2>
|
---|
128 |
|
---|
129 | <sect2 role="commands">
|
---|
130 | <title>Command Explanations</title>
|
---|
131 |
|
---|
132 | <para><parameter>--enable-threads</parameter>: This switch forces the package
|
---|
133 | to build with thread support.</para>
|
---|
134 |
|
---|
135 | <para><command>make install-private-headers</command>: This command is
|
---|
136 | used to install the <application>Tcl</application> library interface
|
---|
137 | headers used by other packages if they link to the
|
---|
138 | <application>Tcl</application> library.</para>
|
---|
139 |
|
---|
140 | <para><command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
|
---|
141 | command is used to create a compatibility symbolic link to the
|
---|
142 | <command>tclsh&tcl-ver;</command> file as many packages expect a file
|
---|
143 | named <command>tclsh</command>.</para>
|
---|
144 |
|
---|
145 | <para><command>sed -i -e ... tclConfig.sh</command>: The
|
---|
146 | <application>Tcl</application> package expects that its source tree is
|
---|
147 | preserved so that packages depending on it for their compilation
|
---|
148 | can utilize it. This <command>sed</command> removes the references to the
|
---|
149 | build directory and replaces them with saner system-wide locations.</para>
|
---|
150 |
|
---|
151 | </sect2>
|
---|
152 |
|
---|
153 | <sect2 role="content">
|
---|
154 | <title>Contents</title>
|
---|
155 |
|
---|
156 | <segmentedlist>
|
---|
157 | <segtitle>Installed Programs</segtitle>
|
---|
158 | <segtitle>Installed Libraries</segtitle>
|
---|
159 | <segtitle>Installed Directories</segtitle>
|
---|
160 |
|
---|
161 | <seglistitem>
|
---|
162 | <seg>tclsh and tclsh&tcl-ver;</seg>
|
---|
163 | <seg>libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a</seg>
|
---|
164 | <seg>/usr/lib/tcl8, /usr/lib/tcl&tcl-ver;, /usr/share/man/mann,
|
---|
165 | and optionally, /usr/share/doc/&tcl-version;</seg>
|
---|
166 | </seglistitem>
|
---|
167 | </segmentedlist>
|
---|
168 |
|
---|
169 | <variablelist>
|
---|
170 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
171 | <?dbfo list-presentation="list"?>
|
---|
172 | <?dbhtml list-presentation="table"?>
|
---|
173 |
|
---|
174 | <varlistentry id="tclsh">
|
---|
175 | <term><command>tclsh</command></term>
|
---|
176 | <listitem>
|
---|
177 | <para> is a symlink to the <command>tclsh&tcl-ver;</command>
|
---|
178 | program.</para>
|
---|
179 | <indexterm zone="tcl tclsh">
|
---|
180 | <primary sortas="g-tclsh">tclsh</primary>
|
---|
181 | </indexterm>
|
---|
182 | </listitem>
|
---|
183 | </varlistentry>
|
---|
184 |
|
---|
185 | <varlistentry id="tclsh-eight">
|
---|
186 | <term><command>tclsh&tcl-ver;</command></term>
|
---|
187 | <listitem>
|
---|
188 | <para> is a simple shell containing the
|
---|
189 | <application>Tcl</application> interpreter.</para>
|
---|
190 | <indexterm zone="tcl tclsh-eight">
|
---|
191 | <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
|
---|
192 | </indexterm>
|
---|
193 | </listitem>
|
---|
194 | </varlistentry>
|
---|
195 |
|
---|
196 | <varlistentry id="libtcl">
|
---|
197 | <term><filename role="library">libtcl.so</filename></term>
|
---|
198 | <listitem>
|
---|
199 | <para>contains the API functions required
|
---|
200 | by <application>Tcl</application>.</para>
|
---|
201 | <indexterm zone="tcl libtcl">
|
---|
202 | <primary sortas="c-libtcl">libtcl.so</primary>
|
---|
203 | </indexterm>
|
---|
204 | </listitem>
|
---|
205 | </varlistentry>
|
---|
206 |
|
---|
207 | </variablelist>
|
---|
208 |
|
---|
209 | </sect2>
|
---|
210 |
|
---|
211 | </sect1>
|
---|