source: general/prog/tcl.xml@ dd0c128

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since dd0c128 was dd0c128, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Tcl: incorrect path for installed directory.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@14405 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.9 KB
Line 
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 <!ENTITY tcl-md5sum "8103eaf6d71acb716a64224492f09d5f">
10 <!ENTITY tcl-size "8.5 MB">
11 <!ENTITY tcl-buildsize "79 MB (includes documentation installation)">
12 <!ENTITY tcl-time "0.9 SBU (adittional 1.5 SBU for the tests)">
13
14 <!ENTITY tcl-doc-download "&sourceforge-repo;/tcl/tcl&tcl-version;-html.tar.gz">
15 <!ENTITY tcl-doc-md5sum "75019542fa735eb0c26e385b1a41296c">
16 <!ENTITY tcl-doc-size "1.2 MB">
17
18 <!-- Ensure this is updated when Tcl moves from the 8.6.x branch -->
19 <!ENTITY tcl-ver "8.6">
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>
40 The <application>Tcl</application> package contains the Tool Command
41 Language, a robust general-purpose scripting language.
42 </para>
43
44 &lfs76_checked;
45
46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
49 <para>
50 Download (HTTP): <ulink url="&tcl-download-http;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download (FTP): <ulink url="&tcl-download-ftp;"/>
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download MD5 sum: &tcl-md5sum;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Download size: &tcl-size;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated disk space required: &tcl-buildsize;
71 </para>
72 </listitem>
73 <listitem>
74 <para>
75 Estimated build time: &tcl-time;
76 </para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
81 <itemizedlist spacing="compact">
82 <title>Optional Documentation</title>
83 <listitem>
84 <para>
85 Download (HTTP): <ulink url="&tcl-doc-download;"/>
86 </para>
87 </listitem>
88 <listitem>
89 <para>
90 Download MD5 sum: &tcl-doc-md5sum;
91 </para>
92 </listitem>
93 <listitem>
94 <para>
95 Download size: &tcl-doc-size;
96 </para>
97 </listitem>
98 </itemizedlist>
99
100 <para condition="html" role="usernotes">User Notes:
101 <ulink url="&blfs-wiki;/tcl"/>
102 </para>
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of Tcl</title>
107
108 <para>
109 This package is also installed in LFS during the bootstrap phase.
110 As it is not installed during Chapter 6 of LFS, installation instructions
111 are included here in BLFS.
112 </para>
113
114 <para>
115 If you downloaded the optional documentation, unpack the tarball
116 by issuing the following command:
117 </para>
118
119<screen><userinput>tar -xf ../tcl&tcl-version;-html.tar.gz --strip-components=1</userinput></screen>
120
121 <para>
122 Install <application>Tcl</application> by running the following
123 commands:
124 </para>
125
126<screen><userinput>export SRCDIR=`pwd` &amp;&amp;
127
128cd unix &amp;&amp;
129
130./configure --prefix=/usr \
131 --without-tzdata \
132 --mandir=/usr/share/man \
133 $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
134make &amp;&amp;
135<!--
136sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
137 -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
138 -i tclConfig.sh</userinput></screen>-->
139sed -e "s#$SRCDIR/unix#/usr/lib#" \
140 -e "s#$SRCDIR#/usr/include#" \
141 -i tclConfig.sh &amp;&amp;
142
143sed -e "s#$SRCDIR/unix/pkgs/tdbc1.0.1#/usr/lib/tdbc1.0.0#" \
144 -e "s#$SRCDIR/pkgs/tdbc1.0.1/generic#/usr/include#" \
145 -e "s#$SRCDIR/pkgs/tdbc1.0.1/library#/usr/lib/tcl8.6#" \
146 -e "s#$SRCDIR/pkgs/tdbc1.0.1#/usr/include#" \
147 -i pkgs/tdbc1.0.1/tdbcConfig.sh &amp;&amp;
148
149sed -e "s#$SRCDIR/unix/pkgs/itcl4.0.1#/usr/lib/itcl4.0.0#" \
150 -e "s#$SRCDIR/pkgs/itcl4.0.1/generic#/usr/include#" \
151 -e "s#$SRCDIR/pkgs/itcl4.0.1#/usr/include#" \
152 -i pkgs/itcl4.0.1/itclConfig.sh &amp;&amp;
153
154unset SRCDIR</userinput></screen>
155
156
157 <para>
158 To test the results, issue: <command>make test</command>.
159 </para>
160
161 <para>
162 Now, as the <systemitem class="username">root</systemitem> user:
163 </para>
164
165<screen role="root"><userinput>make install &amp;&amp;
166make install-private-headers &amp;&amp;
167ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh &amp;&amp;
168chmod -v 755 /usr/lib/libtcl&tcl-ver;.so</userinput></screen>
169
170 <para>
171 If you downloaded the optional documentation, install it by issuing
172 the following commands as the
173 <systemitem class="username">root</systemitem> user:
174 </para>
175
176<screen role="root"><userinput>mkdir -v -p /usr/share/doc/tcl-&tcl-version; &amp;&amp;
177cp -v -r ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
178
179 </sect2>
180
181 <sect2 role="commands">
182 <title>Command Explanations</title>
183
184 <para>
185 <option>--without-tzdata</option>: This switch prevents installation
186 of the shipped timezone data which are older than the ones provided
187 in LFS.
188 </para>
189
190 <para>
191 <parameter>$([ $(uname -m) = x86_64 ] &amp;&amp; echo
192 --enable-64bit)</parameter>: This switch is used to enable 64 bit
193 support in <application>Tcl</application> on 64 bit operating
194 systems.
195 </para>
196
197 <para>
198 <command>make install-private-headers</command>: This command is
199 used to install the <application>Tcl</application> library interface
200 headers used by other packages if they link to the
201 <application>Tcl</application> library.
202 </para>
203
204 <para>
205 <command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
206 command is used to create a compatibility symbolic link to the
207 <command>tclsh&tcl-ver;</command> file as many packages expect a file
208 named <command>tclsh</command>.
209 </para>
210
211 <para>
212 <command>sed -e ...</command>: The <application>Tcl</application> package
213 expects that its source tree is preserved so that packages depending on
214 it for their compilation can utilize it. These <command>sed</command>
215 remove the references to the build directory and replace them with saner
216 system-wide locations.
217 </para>
218
219 </sect2>
220
221 <sect2 role="content">
222 <title>Contents</title>
223
224 <segmentedlist>
225 <segtitle>Installed Programs</segtitle>
226 <segtitle>Installed Libraries</segtitle>
227 <segtitle>Installed Directories</segtitle>
228
229 <seglistitem>
230 <seg>
231 tclsh and tclsh&tcl-ver;
232 </seg>
233 <seg>
234 libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a
235 </seg>
236 <seg>
237 /usr/lib/itcl4.0.1,
238 /usr/lib/sqlite3.8.6
239 /usr/lib/tcl8,
240 /usr/lib/tcl&tcl-ver;,
241 /usr/lib/tdbc1.0.1,
242 /usr/lib/tdbcmysql1.0.1,
243 /usr/lib/tdbcodbc1.0.1,
244 /usr/lib/tdbcpostgres1.0.1,
245 /usr/lib/thread2.7.1,
246 /usr/share/doc/tcl-&tcl-version;, and
247 /usr/share/man/mann
248 </seg>
249 </seglistitem>
250 </segmentedlist>
251
252 <variablelist>
253 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
254 <?dbfo list-presentation="list"?>
255 <?dbhtml list-presentation="table"?>
256
257 <varlistentry id="tclsh">
258 <term><command>tclsh</command></term>
259 <listitem>
260 <para>
261 is a symlink to the <command>tclsh&tcl-ver;</command> program.
262 </para>
263 <indexterm zone="tcl tclsh">
264 <primary sortas="b-tclsh">tclsh</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="tclsh-eight">
270 <term><command>tclsh&tcl-ver;</command></term>
271 <listitem>
272 <para>
273 is a simple shell containing the
274 <application>Tcl</application> interpreter.
275 </para>
276 <indexterm zone="tcl tclsh-eight">
277 <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="libtcl">
283 <term><filename class="libraryfile">libtcl&tcl-ver;.so</filename></term>
284 <listitem>
285 <para>
286 contains the API functions required by
287 <application>Tcl</application>.
288 </para>
289 <indexterm zone="tcl libtcl">
290 <primary sortas="c-libtcl">libtcl&tcl-ver;.so</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 </variablelist>
296
297 </sect2>
298
299</sect1>
Note: See TracBrowser for help on using the repository browser.