source: general/prog/tcl.xml@ 88dd4702

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 88dd4702 was 88dd4702, checked in by Randy McMurchy <randy@…>, 18 years ago

Updated to Tcl-8.4.12 and Tk-8.4.12

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

  • Property mode set to 100644
File size: 6.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY tcl-download-http "http://prdownloads.sourceforge.net/tcl/tcl&tcl-version;-src.tar.gz">
8 <!ENTITY tcl-download-ftp " ">
9<!-- <!ENTITY tcl-download-ftp "ftp://ftp.us.xemacs.org/pub/tcl/tcl8_4/tcl&tcl-version;-src.tar.gz"> -->
10 <!ENTITY tcl-md5sum "7480432d8730263f267952788eb4839b">
11 <!ENTITY tcl-size "3.5 MB">
12 <!ENTITY tcl-buildsize "24.5 MB">
13 <!ENTITY tcl-time "0.3 SBU (additional 0.4 SBU to run the test suite)">
14]>
15
16<sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
17 <?dbhtml filename="tcl.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 <keywordset>
23 <keyword role="package">tcl&tcl-version;-src.tar</keyword>
24 <keyword role="ftpdir">tcl</keyword>
25 </keywordset>
26 </sect1info>
27
28 <title>Tcl-&tcl-version;</title>
29
30 <indexterm zone="tcl">
31 <primary sortas="a-Tcl">Tcl</primary>
32 </indexterm>
33
34 <sect2 role="package">
35 <title>Introduction to Tcl</title>
36
37 <para>The <application>Tcl</application> package contains the Tool Command
38 Language, a robust general-purpose scripting language.</para>
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>Download (HTTP): <ulink url="&tcl-download-http;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download (FTP): <ulink url="&tcl-download-ftp;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &tcl-md5sum;</para>
50 </listitem>
51 <listitem>
52 <para>Download size: &tcl-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required: &tcl-buildsize;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated build time: &tcl-time;</para>
59 </listitem>
60 </itemizedlist>
61
62 </sect2>
63
64 <sect2 role="installation">
65 <title>Installation of Tcl</title>
66
67 <note>
68 <para>This package is also installed in LFS during the bootstrap phase.
69 As it is not installed during Chapter 6 of LFS, installation instructions
70 are included here in BLFS.</para>
71 </note>
72
73 <para>Install <application>Tcl</application> by running the following
74 commands:</para>
75
76<screen><userinput>export VERSION=&tcl-version; &amp;&amp;
77export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
78export DIR=$PWD &amp;&amp;
79cd unix &amp;&amp;
80sed -i "s/relid'/relid/" configure &amp;&amp;
81./configure --prefix=/usr --enable-threads &amp;&amp;
82make &amp;&amp;
83sed -i -e "s:${DIR}/unix:/usr/lib:" \
84 -e "s:${DIR}:/usr/include/tcl${V}:" \
85 -e "s:^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so':\
86TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\":" tclConfig.sh</userinput></screen>
87
88 <para>To test the results, issue: <command>make test</command>.</para>
89
90 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
91
92 <caution>
93 <para>If you become the <systemitem class="username">root</systemitem>
94 user in a manner that doesn't preserve the unprivileged user's
95 environment, ensure you correctly set the environment variable
96 <envar>V</envar> again before running the installation commands.</para>
97 </caution>
98
99<screen role="root"><userinput>make install &amp;&amp;
100install -v -d /usr/include/tcl${V}/unix &amp;&amp;
101install -v -m644 *.h /usr/include/tcl${V}/unix/ &amp;&amp;
102install -v -d /usr/include/tcl${V}/generic &amp;&amp;
103install -v -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &amp;&amp;
104rm -v -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &amp;&amp;
105ln -v -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &amp;&amp;
106ln -v -sf libtcl${V}.so /usr/lib/libtcl.so &amp;&amp;
107ln -v -sf tclsh${V} /usr/bin/tclsh</userinput></screen>
108
109 <para>Clean up the unprivileged user's environment using the following
110 commands:</para>
111
112<screen><userinput>unset VERSION &amp;&amp;
113unset V &amp;&amp;
114unset DIR</userinput></screen>
115
116 </sect2>
117
118 <sect2 role="commands">
119 <title>Command Explanations</title>
120
121 <para><parameter>--enable-threads</parameter>: This switch forces the package
122 to build with thread support.</para>
123
124 <para><command>sed -i "s/relid'/relid/" configure</command>: This command
125 fixes a syntax error in the <command>configure</command> script.</para>
126
127 <para><command>sed -i -e ... tclConfig.sh</command>: The
128 <application>Tcl</application> package assumes that the source used to build
129 <application>Tcl</application> is always kept around for compiling packages
130 that depend on <application>Tcl</application>. This <command>sed</command>
131 removes the references to the build directory and replaces them with saner
132 system-wide locations.</para>
133
134 <para><command>install ...</command>: These commands install the internal
135 headers into a system-wide location.</para>
136
137 <para><command>ln -v -sf ...</command>: These commands create compatibility
138 symbolic links.</para>
139
140 </sect2>
141
142 <sect2 role="content">
143 <title>Contents</title>
144
145 <segmentedlist>
146 <segtitle>Installed Programs</segtitle>
147 <segtitle>Installed Libraries</segtitle>
148 <segtitle>Installed Directories</segtitle>
149
150 <seglistitem>
151 <seg>tclsh and tclsh8.4</seg>
152 <seg>libtcl.so and libtclstub8.4.a</seg>
153 <seg>/usr/include/tcl8.4 and /usr/lib/tcl8.4</seg>
154 </seglistitem>
155 </segmentedlist>
156
157 <variablelist>
158 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
159 <?dbfo list-presentation="list"?>
160 <?dbhtml list-presentation="table"?>
161
162 <varlistentry id="tclsh">
163 <term><command>tclsh</command></term>
164 <listitem>
165 <para> is a symlink to the <command>tclsh8.4</command>
166 program.</para>
167 <indexterm zone="tcl tclsh">
168 <primary sortas="g-tclsh">tclsh</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="tclsh8.4">
174 <term><command>tclsh8.4</command></term>
175 <listitem>
176 <para> is a simple shell containing the
177 <application>Tcl</application> interpreter.</para>
178 <indexterm zone="tcl tclsh8.4">
179 <primary sortas="b-tclsh8.4">tclsh8.4</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 <varlistentry id="libtcl">
185 <term><filename role="library">libtcl.so</filename></term>
186 <listitem>
187 <para>contains the API functions required
188 by <application>Tcl</application>.</para>
189 <indexterm zone="tcl libtcl">
190 <primary sortas="c-libtcl">libtcl.so</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 </variablelist>
196
197 </sect2>
198
199</sect1>
Note: See TracBrowser for help on using the repository browser.