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