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 &&
|
---|
79 | ./configure --prefix=/usr --enable-threads &&
|
---|
80 | make &&
|
---|
81 | sed -i \
|
---|
82 | -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
|
---|
83 | -e "/TCL_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 &&
|
---|
92 | make install-private-headers &&
|
---|
93 | ln -v -sf tclsh&tcl-ver; /usr/bin/tclsh</userinput></screen>
|
---|
94 |
|
---|
95 | <!-- This is removed per discussion and fairly vigorous testing
|
---|
96 | install -v -d /usr/include/tcl&tcl-ver;/{unix,generic} &&
|
---|
97 | install -v -m644 *.h /usr/include/tcl&tcl-ver;/unix/ &&
|
---|
98 | install -v -m644 ../generic/*.h /usr/include/tcl&tcl-ver;/generic/ &&
|
---|
99 | rm -v -f /usr/include/tcl&tcl-ver;/generic/tcl{,{,Plat}Decls}.h &&
|
---|
100 | ln -v -nsf ../../include/tcl&tcl-ver; /usr/lib/tcl&tcl-ver;/include &&
|
---|
101 | ln -v -sf libtcl&tcl-ver;.so /usr/lib/libtcl.so &&
|
---|
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>
|
---|