source: general/prog/tcl.xml@ 1039de3

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 1039de3 was 1039de3, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #3

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

  • Property mode set to 100644
File size: 6.9 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 <para condition="html" role="usernotes">User Notes:
63 <ulink url="&blfs-wiki;/tcl"/></para>
64
65 </sect2>
66
67 <sect2 role="installation">
68 <title>Installation of Tcl</title>
69
70 <note>
71 <para>This package is also installed in LFS during the bootstrap phase.
72 As it is not installed during Chapter 6 of LFS, installation instructions
73 are included here in BLFS.</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;
83sed -i "s/relid'/relid/" configure &amp;&amp;
84./configure --prefix=/usr --enable-threads &amp;&amp;
85make &amp;&amp;
86sed -i -e "s:${DIR}/unix:/usr/lib:" \
87 -e "s:${DIR}:/usr/include/tcl${V}:" \
88 -e "s:^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so':\
89TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\":" tclConfig.sh</userinput></screen>
90
91 <para>To test the results, issue: <command>make test</command>.</para>
92
93 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
94
95 <caution>
96 <para>If you become the <systemitem class="username">root</systemitem>
97 user in a manner that doesn't preserve the unprivileged user's
98 environment, ensure you correctly set the environment variable
99 <envar>V</envar> again before running the installation commands.</para>
100 </caution>
101
102<screen role="root"><userinput>make install &amp;&amp;
103install -v -d /usr/include/tcl${V}/unix &amp;&amp;
104install -v -m644 *.h /usr/include/tcl${V}/unix/ &amp;&amp;
105install -v -d /usr/include/tcl${V}/generic &amp;&amp;
106install -v -c -m644 ../generic/*.h /usr/include/tcl${V}/generic/ &amp;&amp;
107rm -v -f /usr/include/tcl${V}/generic/{tcl,tclDecls,tclPlatDecls}.h &amp;&amp;
108ln -v -nsf ../../include/tcl${V} /usr/lib/tcl${V}/include &amp;&amp;
109ln -v -sf libtcl${V}.so /usr/lib/libtcl.so &amp;&amp;
110ln -v -sf tclsh${V} /usr/bin/tclsh</userinput></screen>
111
112 <para>Clean up the unprivileged user's environment using the following
113 commands:</para>
114
115<screen><userinput>unset VERSION &amp;&amp;
116unset V &amp;&amp;
117unset DIR</userinput></screen>
118
119 </sect2>
120
121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
124 <para><parameter>--enable-threads</parameter>: This switch forces the package
125 to build with thread support.</para>
126
127 <para><command>sed -i "s/relid'/relid/" configure</command>: This command
128 fixes a syntax error in the <command>configure</command> script.</para>
129
130 <para><command>sed -i -e ... tclConfig.sh</command>: The
131 <application>Tcl</application> package assumes that the source used to build
132 <application>Tcl</application> is always kept around for compiling packages
133 that depend on <application>Tcl</application>. This <command>sed</command>
134 removes the references to the build directory and replaces them with saner
135 system-wide locations.</para>
136
137 <para><command>install ...</command>: These commands install the internal
138 headers into a system-wide location.</para>
139
140 <para><command>ln -v -sf ...</command>: These commands create compatibility
141 symbolic links.</para>
142
143 </sect2>
144
145 <sect2 role="content">
146 <title>Contents</title>
147
148 <segmentedlist>
149 <segtitle>Installed Programs</segtitle>
150 <segtitle>Installed Libraries</segtitle>
151 <segtitle>Installed Directories</segtitle>
152
153 <seglistitem>
154 <seg>tclsh and tclsh8.4</seg>
155 <seg>libtcl.so and libtclstub8.4.a</seg>
156 <seg>/usr/include/tcl8.4 and /usr/lib/tcl8.4</seg>
157 </seglistitem>
158 </segmentedlist>
159
160 <variablelist>
161 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
162 <?dbfo list-presentation="list"?>
163 <?dbhtml list-presentation="table"?>
164
165 <varlistentry id="tclsh">
166 <term><command>tclsh</command></term>
167 <listitem>
168 <para> is a symlink to the <command>tclsh8.4</command>
169 program.</para>
170 <indexterm zone="tcl tclsh">
171 <primary sortas="g-tclsh">tclsh</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="tclsh8.4">
177 <term><command>tclsh8.4</command></term>
178 <listitem>
179 <para> is a simple shell containing the
180 <application>Tcl</application> interpreter.</para>
181 <indexterm zone="tcl tclsh8.4">
182 <primary sortas="b-tclsh8.4">tclsh8.4</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="libtcl">
188 <term><filename role="library">libtcl.so</filename></term>
189 <listitem>
190 <para>contains the API functions required
191 by <application>Tcl</application>.</para>
192 <indexterm zone="tcl libtcl">
193 <primary sortas="c-libtcl">libtcl.so</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 </variablelist>
199
200 </sect2>
201
202</sect1>
Note: See TracBrowser for help on using the repository browser.