source: general/prog/tcl.xml@ 92d2b83

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 lazarus lxqt 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 92d2b83 was 92d2b83, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to curl-7.55.0.
Update to tcl-core-8.6.7 and tk-8.6.7.
Update to openjpeg2-2.2.0.
Update to gnupg-2.1.23.

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

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