source: general/prog/tcl.xml@ 85eca89b

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

Updated the installed directories in the Tcl and Tk instructions

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