source: general/prog/tcl.xml@ dd01532b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 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 systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since dd01532b was dd01532b, checked in by Randy McMurchy <randy@…>, 14 years ago

Updated Tcl and Tk to version 8.5.8

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

  • Property mode set to 100644
File size: 7.1 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 "&gentoo-ftp-repo;/tcl&tcl-version;-src.tar.gz">
9 <!ENTITY tcl-md5sum "7f123e53b3daaaba2478d3af5a0752e3">
10 <!ENTITY tcl-size "4.4 MB">
11 <!ENTITY tcl-buildsize "62 MB (includes documentation installation)">
12 <!ENTITY tcl-time "0.5 SBU (additional 1.2 SBU to run the test suite)">
13
14 <!ENTITY tcl-doc-download "&sourceforge-repo;/tcl/tcl&tcl-version;-html.tar.gz">
15 <!ENTITY tcl-doc-md5sum "788cacd89d8cf97b23f53500ede910bc">
16 <!ENTITY tcl-doc-size "925 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 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&tcl-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&tcl-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &tcl-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &tcl-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &tcl-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &tcl-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
65 <itemizedlist spacing="compact">
66 <listitem>
67 <para>Optional Documentation: <ulink url="&tcl-doc-download;"/></para>
68 </listitem>
69 <listitem>
70 <para>Download MD5 sum: &tcl-doc-md5sum;</para>
71 </listitem>
72 <listitem>
73 <para>Download size: &tcl-doc-size;</para>
74 </listitem>
75 </itemizedlist>
76
77 <para condition="html" role="usernotes">User Notes:
78 <ulink url="&blfs-wiki;/tcl"/></para>
79
80 </sect2>
81
82 <sect2 role="installation">
83 <title>Installation of Tcl</title>
84
85 <para>This package is also installed in LFS during the bootstrap phase.
86 As it is not installed during Chapter 6 of LFS, installation instructions
87 are included here in BLFS.</para>
88
89 <para>If you downloaded the optional documentation, unpack the tarball
90 by issuing the following command:</para>
91
92<screen><userinput>tar xf ../tcl&tcl-version;-html.tar.gz --strip-components=1</userinput></screen>
93
94 <para>Install <application>Tcl</application> by running the following
95 commands:</para>
96
97<screen><userinput>cd unix &amp;&amp;
98./configure --prefix=/usr \
99 --enable-threads \
100 --mandir=/usr/share/man &amp;&amp;
101make &amp;&amp;
102
103sed -i \
104 -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
105 -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
106 tclConfig.sh</userinput></screen>
107
108 <para>To test the results, issue: <command>make test</command>.</para>
109
110 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
111
112<screen role="root"><userinput>make install &amp;&amp;
113make install-private-headers &amp;&amp;
114ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh &amp;&amp;
115chmod -v 755 /usr/lib/libtcl&tcl-ver;.so</userinput></screen>
116
117 <para>If you downloaded the optional documentation, install it by issuing
118 the following commands as the
119 <systemitem class="username">root</systemitem> user:</para>
120
121<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/tcl-&tcl-version; &amp;&amp;
122cp -v -R ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
123
124 </sect2>
125
126 <sect2 role="commands">
127 <title>Command Explanations</title>
128
129 <para><parameter>--enable-threads</parameter>: This switch forces the package
130 to build with thread support.</para>
131
132 <para><command>make install-private-headers</command>: This command is
133 used to install the <application>Tcl</application> library interface
134 headers used by other packages if they link to the
135 <application>Tcl</application> library.</para>
136
137 <para><command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
138 command is used to create a compatibility symbolic link to the
139 <command>tclsh&tcl-ver;</command> file as many packages expect a file
140 named <command>tclsh</command>.</para>
141
142 <para><command>sed -i -e ... tclConfig.sh</command>: The
143 <application>Tcl</application> package expects that its source tree is
144 preserved so that packages depending on it for their compilation
145 can utilize it. This <command>sed</command> removes the references to the
146 build directory and replaces them with saner system-wide locations.</para>
147
148 </sect2>
149
150 <sect2 role="content">
151 <title>Contents</title>
152
153 <segmentedlist>
154 <segtitle>Installed Programs</segtitle>
155 <segtitle>Installed Libraries</segtitle>
156 <segtitle>Installed Directories</segtitle>
157
158 <seglistitem>
159 <seg>tclsh and tclsh&tcl-ver;</seg>
160 <seg>libtcl&tcl-ver;.so and libtclstub&tcl-ver;.a</seg>
161 <seg>/usr/lib/tcl8, /usr/lib/tcl&tcl-ver;, /usr/share/man/mann,
162 and optionally, /usr/share/doc/&tcl-version;</seg>
163 </seglistitem>
164 </segmentedlist>
165
166 <variablelist>
167 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
168 <?dbfo list-presentation="list"?>
169 <?dbhtml list-presentation="table"?>
170
171 <varlistentry id="tclsh">
172 <term><command>tclsh</command></term>
173 <listitem>
174 <para> is a symlink to the <command>tclsh&tcl-ver;</command>
175 program.</para>
176 <indexterm zone="tcl tclsh">
177 <primary sortas="g-tclsh">tclsh</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="tclsh-eight">
183 <term><command>tclsh&tcl-ver;</command></term>
184 <listitem>
185 <para> is a simple shell containing the
186 <application>Tcl</application> interpreter.</para>
187 <indexterm zone="tcl tclsh-eight">
188 <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="libtcl">
194 <term><filename role="library">libtcl.so</filename></term>
195 <listitem>
196 <para>contains the API functions required
197 by <application>Tcl</application>.</para>
198 <indexterm zone="tcl libtcl">
199 <primary sortas="c-libtcl">libtcl.so</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 </variablelist>
205
206 </sect2>
207
208</sect1>
Note: See TracBrowser for help on using the repository browser.