source: general/prog/tcl.xml@ 22ac237

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 22ac237 was 22ac237, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Typo fix. General.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5388 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 "629dfea34e4087eb4683f834060abb63">
11 <!ENTITY tcl-size "3.4 MB">
12 <!ENTITY tcl-buildsize "22.5 MB">
13 <!ENTITY tcl-time "0.3 SBU (additional 0.9 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 At the time of the LFS-6.1 release, &tcl-version; was not available. The
70 significant difference between the two installations (other than
71 installing to <filename class="directory">/usr</filename>) is that the
72 package is installed in such a way that there is no need to keep the build
73 directory around after installation.</para>
74 </note>
75
76 <para>Install <application>Tcl</application> by running the following
77 commands:</para>
78
79<screen><userinput>export VERSION=&tcl-version; &amp;&amp;
80export V=`echo $VERSION | cut -d "." -f 1,2` &amp;&amp;
81export DIR=$PWD &amp;&amp;
82cd unix &amp;&amp;
83./configure --prefix=/usr --enable-threads &amp;&amp;
84make &amp;&amp;
85sed -i "s:${DIR}/unix:/usr/lib:" tclConfig.sh &amp;&amp;
86sed -i "s:${DIR}:/usr/include/tcl${V}:" tclConfig.sh &amp;&amp;
87sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',\
88TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh</userinput></screen>
89
90 <para>To test the results, issue: <command>make test</command>.</para>
91
92 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
93
94 <caution>
95 <para>If you don't use <command>su</command> to become the
96 <systemitem class="username">root</systemitem> user, ensure you set the
97 environment variables <envar>VERSION</envar> and <envar>V</envar> again
98 before running the installation commands.</para>
99 </caution>
100
101<screen role="root"><userinput>make install &amp;&amp;
102install -v -d /usr/include/tcl${V}/unix &amp;&amp;
103install -v -m644 *.h /usr/include/tcl${V}/unix/ &amp;&amp;
104install -v -d /usr/include/tcl${V}/generic &amp;&amp;
105install -v -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &amp;&amp;
106rm -v -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &amp;&amp;
107ln -v -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &amp;&amp;
108ln -v -sf libtcl${V}.so /usr/lib/libtcl.so &amp;&amp;
109ln -v -sf tclsh${V} /usr/bin/tclsh</userinput></screen>
110
111 <para>Clean up the unprivileged user's environment using the following
112 commands:</para>
113
114<screen><userinput>unset VERSION &amp;&amp;
115unset V &amp;&amp;
116unset DIR</userinput></screen>
117
118 </sect2>
119
120 <sect2 role="commands">
121 <title>Command Explanations</title>
122
123 <para><parameter>--enable-threads</parameter>: This switch forces the package
124 to build with thread support.</para>
125
126 <para><command>sed -i ...</command>: The <application>Tcl</application>
127 package assumes that the source used to build
128 <application>Tcl</application> is always kept around for compiling packages
129 that depend on <application>Tcl</application>. These <command>sed</command>s
130 remove the reference to the build directory and replace them by saner
131 system-wide locations.</para>
132
133 <para><command>install ...</command>: These commands install the internal
134 headers into a system-wide location.</para>
135
136 <para><command>ln -v -sf ...</command>: These commands create compatibility
137 symbolic links.</para>
138
139 </sect2>
140
141 <sect2 role="content">
142 <title>Contents</title>
143
144 <segmentedlist>
145 <segtitle>Installed Programs</segtitle>
146 <segtitle>Installed Libraries</segtitle>
147 <segtitle>Installed Directories</segtitle>
148
149 <seglistitem>
150 <seg>tclsh and tclsh8.4</seg>
151 <seg>libtcl.so and libtclstub8.4.a</seg>
152 <seg>/usr/include/tcl8.4 and /usr/lib/tcl8.4</seg>
153 </seglistitem>
154 </segmentedlist>
155
156 <variablelist>
157 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
158 <?dbfo list-presentation="list"?>
159 <?dbhtml list-presentation="table"?>
160
161 <varlistentry id="tclsh">
162 <term><command>tclsh</command></term>
163 <listitem>
164 <para> is a symlink to the <command>tclsh8.4</command>
165 program.</para>
166 <indexterm zone="tcl tclsh">
167 <primary sortas="g-tclsh">tclsh</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="tclsh8.4">
173 <term><command>tclsh8.4</command></term>
174 <listitem>
175 <para> is a simple shell containing the
176 <application>Tcl</application> interpreter.</para>
177 <indexterm zone="tcl tclsh8.4">
178 <primary sortas="b-tclsh8.4">tclsh8.4</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="libtcl">
184 <term><filename role="library">libtcl.so</filename></term>
185 <listitem>
186 <para>contains the API functions required
187 by <application>Tcl</application>.</para>
188 <indexterm zone="tcl libtcl">
189 <primary sortas="c-libtcl">libtcl.so</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 </variablelist>
195
196 </sect2>
197
198</sect1>
Note: See TracBrowser for help on using the repository browser.