source: general/prog/tcl.xml@ 206b7a1

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 206b7a1 was 206b7a1, checked in by Ag Hatzimanikas <ag@…>, 16 years ago

Added a sed to Tcl/Tk instructions to fix #2487

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7318 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
86</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<screen role="root"><userinput>make install &amp;&amp;
93make install-private-headers &amp;&amp;
94ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</userinput></screen>
95
96<!-- This is removed per discussion and fairly vigorous testing
97install -v -d /usr/include/tcl&tcl-ver;/{unix,generic} &amp;&amp;
98install -v -m644 *.h /usr/include/tcl&tcl-ver;/unix/ &amp;&amp;
99install -v -m644 ../generic/*.h /usr/include/tcl&tcl-ver;/generic/ &amp;&amp;
100rm -v -f /usr/include/tcl&tcl-ver;/generic/tcl{,{,Plat}Decls}.h &amp;&amp;
101ln -v -nsf ../../include/tcl&tcl-ver; /usr/lib/tcl&tcl-ver;/include &amp;&amp;
102ln -v -sf libtcl&tcl-ver;.so /usr/lib/libtcl.so &amp;&amp;
103-->
104
105 </sect2>
106
107 <sect2 role="commands">
108 <title>Command Explanations</title>
109
110 <para><parameter>--enable-threads</parameter>: This switch forces the package
111 to build with thread support.</para>
112
113 <para><command>make install-private-headers</command>: This command is
114 used to install the <application>Tcl</application> library interface
115 headers used by other packages if they link to the
116 <application>Tcl</application> library.</para>
117
118 <para><command>ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</command>: This
119 command is used to create a compatibility symbolic link to the
120 <command>tclsh&tcl-ver;</command> file as many packages expect a file
121 named <command>tclsh</command>.</para>
122
123 <para><command>sed -i -e ... tclConfig.sh</command>: The
124 <application>Tcl</application> package expects that its source tree is
125 preserved so that packages depending on it for their compilation
126 can utilize it. This <command>sed</command> removes the references to the
127 build directory and replaces them with saner system-wide locations.</para>
128
129 <!--
130 <para><command>install ...</command>: These commands install the internal
131 headers into a system-wide location.</para>
132
133 <para><command>ln -v -sf ...</command>: These commands create compatibility
134 symbolic links.</para>
135 -->
136
137 </sect2>
138
139 <sect2 role="content">
140 <title>Contents</title>
141
142 <segmentedlist>
143 <segtitle>Installed Programs</segtitle>
144 <segtitle>Installed Libraries</segtitle>
145 <segtitle>Installed Directories</segtitle>
146
147 <seglistitem>
148 <seg>tclsh and tclsh&tcl-ver;</seg>
149 <seg>libtcl.so and libtclstub&tcl-ver;.a</seg>
150 <seg>/usr/lib/tcl&tcl-ver;</seg>
151 </seglistitem>
152 </segmentedlist>
153
154 <variablelist>
155 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
156 <?dbfo list-presentation="list"?>
157 <?dbhtml list-presentation="table"?>
158
159 <varlistentry id="tclsh">
160 <term><command>tclsh</command></term>
161 <listitem>
162 <para> is a symlink to the <command>tclsh&tcl-ver;</command>
163 program.</para>
164 <indexterm zone="tcl tclsh">
165 <primary sortas="g-tclsh">tclsh</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="tclsh-eight">
171 <term><command>tclsh&tcl-ver;</command></term>
172 <listitem>
173 <para> is a simple shell containing the
174 <application>Tcl</application> interpreter.</para>
175 <indexterm zone="tcl tclsh-eight">
176 <primary sortas="b-tclsh&tcl-ver;">tclsh&tcl-ver;</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="libtcl">
182 <term><filename role="library">libtcl.so</filename></term>
183 <listitem>
184 <para>contains the API functions required
185 by <application>Tcl</application>.</para>
186 <indexterm zone="tcl libtcl">
187 <primary sortas="c-libtcl">libtcl.so</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 </variablelist>
193
194 </sect2>
195
196</sect1>
Note: See TracBrowser for help on using the repository browser.