source: general/prog/tcl.xml@ d51f4a5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 d51f4a5 was d51f4a5, checked in by Ag Hatzimanikas <ag@…>, 16 years ago

Removed extra space in the Tcl sed

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

  • Property mode set to 100644
File size: 6.6 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 "http://downloads.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 "5e1b71eef1f75a294072aa3218f62b66">
11 <!ENTITY tcl-size "3.6 MB">
12 <!ENTITY tcl-buildsize "25 MB">
13 <!ENTITY tcl-time "0.3 SBU (additional 0.7 SBU to run the test suite)">
14
15 <!-- Ensure this is updated when Tcl moves to the 8.5.x branch -->
16 <!ENTITY tcl-ver "8.4">
17]>
18
19<sect1 id="tcl" xreflabel="Tcl-&tcl-version;">
20 <?dbhtml filename="tcl.html"?>
21
22 <sect1info>
23 <othername>$LastChangedBy$</othername>
24 <date>$Date$</date>
25 </sect1info>
26
27 <title>Tcl-&tcl-version;</title>
28
29 <indexterm zone="tcl">
30 <primary sortas="a-Tcl">Tcl</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Tcl</title>
35
36 <para>The <application>Tcl</application> package contains the Tool Command
37 Language, a robust general-purpose scripting language.</para>
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&tcl-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&tcl-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &tcl-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &tcl-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &tcl-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &tcl-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <para condition="html" role="usernotes">User Notes:
62 <ulink url="&blfs-wiki;/tcl"/></para>
63
64 </sect2>
65
66 <sect2 role="installation">
67 <title>Installation of Tcl</title>
68
69 <note>
70 <para>This package is also installed in LFS during the bootstrap phase.
71 As it is not installed during Chapter 6 of LFS, installation instructions
72 are included here in BLFS.</para>
73 </note>
74
75 <para>Install <application>Tcl</application> by running the following
76 commands:</para>
77
78<screen><userinput>cd unix &amp;&amp;
79./configure --prefix=/usr --enable-threads &amp;&amp;
80make &amp;&amp;
81sed -i \
82 -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
83 -e "/TC_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
84 -e "/SEARCH/s/=.*/=''/" \
85 tclConfig.sh</userinput></screen>
86
87 <para>To test the results, issue: <command>make test</command>.</para>
88
89 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
90
91<screen role="root"><userinput>make install &amp;&amp;
92make install-private-headers &amp;&amp;
93ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</userinput></screen>
94
95<!-- This is removed per discussion and fairly vigorous testing
96install -v -d /usr/include/tcl&tcl-ver;/{unix,generic} &amp;&amp;
97install -v -m644 *.h /usr/include/tcl&tcl-ver;/unix/ &amp;&amp;
98install -v -m644 ../generic/*.h /usr/include/tcl&tcl-ver;/generic/ &amp;&amp;
99rm -v -f /usr/include/tcl&tcl-ver;/generic/tcl{,{,Plat}Decls}.h &amp;&amp;
100ln -v -nsf ../../include/tcl&tcl-ver; /usr/lib/tcl&tcl-ver;/include &amp;&amp;
101ln -v -sf libtcl&tcl-ver;.so /usr/lib/libtcl.so &amp;&amp;
102-->
103
104 </sect2>
105
106 <sect2 role="commands">
107 <title>Command Explanations</title>
108
109 <para><parameter>--enable-threads</parameter>: This switch forces the package
110 to build with thread support.</para>
111
112 <para><command>make install-private-headers</command>: This command is
113 used to install the <application>Tcl</application> library interface
114 headers used by other packages if they link to the
115 <application>Tcl</application> library.</para>
116
117 <para><command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
118 command is used to create a compatibility symbolic link to the
119 <command>tclsh&tcl-ver;</command> file as many packages expect a file
120 named <command>tclsh</command>.</para>
121
122 <para><command>sed -i -e ... tclConfig.sh</command>: The
123 <application>Tcl</application> package expects that its source tree is
124 preserved so that packages depending on it for their compilation
125 can utilize it. This <command>sed</command> removes the references to the
126 build directory and replaces them with saner system-wide locations.</para>
127
128 <!--
129 <para><command>install ...</command>: These commands install the internal
130 headers into a system-wide location.</para>
131
132 <para><command>ln -v -sf ...</command>: These commands create compatibility
133 symbolic links.</para>
134 -->
135
136 </sect2>
137
138 <sect2 role="content">
139 <title>Contents</title>
140
141 <segmentedlist>
142 <segtitle>Installed Programs</segtitle>
143 <segtitle>Installed Libraries</segtitle>
144 <segtitle>Installed Directories</segtitle>
145
146 <seglistitem>
147 <seg>tclsh and tclsh&tcl-ver;</seg>
148 <seg>libtcl.so and libtclstub&tcl-ver;.a</seg>
149 <seg>/usr/lib/tcl&tcl-ver;</seg>
150 </seglistitem>
151 </segmentedlist>
152
153 <variablelist>
154 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
155 <?dbfo list-presentation="list"?>
156 <?dbhtml list-presentation="table"?>
157
158 <varlistentry id="tclsh">
159 <term><command>tclsh</command></term>
160 <listitem>
161 <para> is a symlink to the <command>tclsh&tcl-ver;</command>
162 program.</para>
163 <indexterm zone="tcl tclsh">
164 <primary sortas="g-tclsh">tclsh</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="tclsh-eight">
170 <term><command>tclsh&tcl-ver;</command></term>
171 <listitem>
172 <para> is a simple shell containing the
173 <application>Tcl</application> interpreter.</para>
174 <indexterm zone="tcl tclsh-eight">
175 <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry>
179
180 <varlistentry id="libtcl">
181 <term><filename role="library">libtcl.so</filename></term>
182 <listitem>
183 <para>contains the API functions required
184 by <application>Tcl</application>.</para>
185 <indexterm zone="tcl libtcl">
186 <primary sortas="c-libtcl">libtcl.so</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 </variablelist>
192
193 </sect2>
194
195</sect1>
Note: See TracBrowser for help on using the repository browser.