source: chapter08/tcl.xml@ bd1abf6

ml-11.0 multilib
Last change on this file since bd1abf6 was 6dfcfecc, checked in by Xℹ Ruoyao <xry111@…>, 3 years ago

Update to new lfs structure

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11986 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 7.0 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
[6dfcfecc]6 <!ENTITY tdbc-ver "1.1.1">
7 <!ENTITY itcl-ver "4.2.0">
[673b0d8]8]>
[b28fd35]9
[81fd230]10<sect1 id="ch-tools-tcl" role="wrap">
[b28fd35]11 <?dbhtml filename="tcl.html"?>
12
[e747759]13 <sect1info condition="script">
[1e96cc1]14 <productname>tcl</productname>
[e747759]15 <productnumber>&tcl-version;</productnumber>
16 <address>&tcl-url;</address>
17 </sect1info>
18
[1e96cc1]19 <title>Tcl-&tcl-version;</title>
[b28fd35]20
21 <indexterm zone="ch-tools-tcl">
[1e96cc1]22 <primary sortas="a-Tcl">Tcl</primary>
[b28fd35]23 </indexterm>
24
25 <sect2 role="package">
26 <title/>
[673b0d8]27
[630308d]28 <para>The <application>Tcl</application> package contains the Tool Command Language,
29 a robust general-purpose scripting language. The <application>Expect</application> package
30 is written in the <application>Tcl</application> language.</para>
[bc82645e]31
[b28fd35]32 <segmentedlist>
33 <segtitle>&buildtime;</segtitle>
34 <segtitle>&diskspace;</segtitle>
[5888299]35
[b28fd35]36 <seglistitem>
[6dfcfecc]37 <seg>&tcl-tmp-sbu;</seg>
38 <seg>&tcl-tmp-du;</seg>
[b28fd35]39 </seglistitem>
40 </segmentedlist>
[bc82645e]41
[b28fd35]42 </sect2>
[73aedd1d]43
[b28fd35]44 <sect2 role="installation">
[1e96cc1]45 <title>Installation of Tcl</title>
[b28fd35]46
[e97454f]47 <para>This package and the next two (Expect and DejaGNU) are
[6dfcfecc]48 installed to support running the test suites for GCC and binutils and other
[1059bade]49 packages. Installing three packages for testing purposes may seem
[ee321a46]50 excessive, but it is very reassuring, if not essential, to know that the
[6dfcfecc]51 most important tools are working properly. These packages are required
52 to run the test suites in this chapter.</para>
[b28fd35]53
[6dfcfecc]54<!-- <para>Note that the Tcl package used here is a minimal version needed
[ac57a48]55 to run the LFS tests. For the full package, see the
[6dfcfecc]56 <ulink url='&blfs-book;general/tcl.html'>BLFS Tcl procedures</ulink>.</para>-->
57
58 <para>First, unpack the documentation by issuing the following command:</para>
59
60<screen><userinput remap="pre">tar -xf ../tcl8.6.10-html.tar.gz --strip-components=1</userinput></screen>
[ac57a48]61
[b28fd35]62 <para>Prepare Tcl for compilation:</para>
[73aedd1d]63
[6dfcfecc]64<screen><userinput remap="configure">SRCDIR=$(pwd)
65cd unix
66./configure --prefix=/usr \
67 --mandir=/usr/share/man \
68 $([ "$(uname -m)" = x86_64 ] &amp;&amp; echo --enable-64bit)</userinput></screen>
69
70 <variablelist>
71 <title>The meaning of the configure options:</title>
72
73 <varlistentry>
74 <term><parameter>$([ "$(uname -m)" = x86_64 ] &amp;&amp; echo --enable-64bit)</parameter></term>
75 <listitem>
76 <para>The construct <parameter>$(&lt;shell command&gt;)</parameter>
77 is replaced by the output of the shell command. Here this output is
78 empty if running on a 32 bit machine, and is
79 <parameter>--enable-64bit</parameter> if running on a 64 bit machine.
80 </para>
81 </listitem>
82 </varlistentry>
83
84 </variablelist>
[73aedd1d]85
[b28fd35]86 <para>Build the package:</para>
[73aedd1d]87
[6dfcfecc]88<screen><userinput remap="make">make
89
90sed -e "s|$SRCDIR/unix|/usr/lib|" \
91 -e "s|$SRCDIR|/usr/include|" \
92 -i tclConfig.sh
93
94sed -e "s|$SRCDIR/unix/pkgs/tdbc&tdbc-ver;|/usr/lib/tdbc&tdbc-ver;|" \
95 -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;/generic|/usr/include|" \
96 -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;/library|/usr/lib/tcl8.6|" \
97 -e "s|$SRCDIR/pkgs/tdbc&tdbc-ver;|/usr/include|" \
98 -i pkgs/tdbc&tdbc-ver;/tdbcConfig.sh
99
100sed -e "s|$SRCDIR/unix/pkgs/itcl&itcl-ver;|/usr/lib/itcl&itcl-ver;|" \
101 -e "s|$SRCDIR/pkgs/itcl&itcl-ver;/generic|/usr/include|" \
102 -e "s|$SRCDIR/pkgs/itcl&itcl-ver;|/usr/include|" \
103 -i pkgs/itcl&itcl-ver;/itclConfig.sh
104
105unset SRCDIR</userinput></screen>
[73aedd1d]106
[6dfcfecc]107 <para>The various <quote>sed</quote> instructions after the
108 <quote>make</quote> command removes references to the build directory from
109 the configuration files and replaces them with the install directory.
110 This is not mandatory for the remainder of LFS, but may be needed in case a
111 package built later uses Tcl.</para>
[0445a3d]112
[6dfcfecc]113 <para>To test the results, issue:</para>
[0445a3d]114
[6dfcfecc]115<screen><userinput remap="test">make test</userinput></screen>
[73aedd1d]116
[b28fd35]117 <para>Install the package:</para>
[73aedd1d]118
[0445a3d]119<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]120
[bdd7f27]121 <para>Make the installed library writable so debugging symbols can
122 be removed later:</para>
123
[6dfcfecc]124<screen><userinput remap="install">chmod -v u+w /usr/lib/libtcl&tcl-major-version;.so</userinput></screen>
[bdd7f27]125
[6dfcfecc]126 <para>Install Tcl's headers. The next package, Expect, requires them.</para>
[f4993cf]127
[0445a3d]128<screen><userinput remap="install">make install-private-headers</userinput></screen>
[e0ef857]129
[b28fd35]130 <para>Now make a necessary symbolic link:</para>
[73aedd1d]131
[6dfcfecc]132<screen><userinput remap="install">ln -sfv tclsh&tcl-major-version; /usr/bin/tclsh</userinput></screen>
[73aedd1d]133
[b28fd35]134 </sect2>
135
136 <sect2 id="contents-tcl" role="content">
[1e96cc1]137 <title>Contents of Tcl</title>
[b28fd35]138
139 <segmentedlist>
140 <segtitle>Installed programs</segtitle>
141 <segtitle>Installed library</segtitle>
142
143 <seglistitem>
[6dfcfecc]144 <seg>
145 tclsh (link to tclsh&tcl-major-version;) and
146 tclsh&tcl-major-version;
147 </seg>
148 <seg>
149 libtcl&tcl-major-version;.so and
150 libtclstub&tcl-major-version;.a
151 </seg>
[b28fd35]152 </seglistitem>
153 </segmentedlist>
154
155 <variablelist>
156 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
157 <?dbfo list-presentation="list"?>
158 <?dbhtml list-presentation="table"?>
159
[f0332af]160 <varlistentry id="tclsh&tcl-major-version;">
161 <term><command>tclsh&tcl-major-version;</command></term>
[b28fd35]162 <listitem>
163 <para>The Tcl command shell</para>
[f0332af]164 <indexterm zone="ch-tools-tcl tclsh&tcl-major-version;">
165 <primary sortas="b-tclsh&tcl-major-version;">tclsh&tcl-major-version;</primary>
[b28fd35]166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="tclsh">
171 <term><command>tclsh</command></term>
172 <listitem>
[f0332af]173 <para>A link to tclsh&tcl-major-version;</para>
[b28fd35]174 <indexterm zone="ch-tools-tcl tclsh">
175 <primary sortas="b-tclsh">tclsh</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry>
179
[f0332af]180 <varlistentry id="libtcl&tcl-major-version;.so">
181 <term><filename class="libraryfile">libtcl&tcl-major-version;.so</filename></term>
[b28fd35]182 <listitem>
183 <para>The Tcl library</para>
[f0332af]184 <indexterm zone="ch-tools-tcl libtcl&tcl-major-version;.so">
185 <primary sortas="c-libtcl&tcl-major-version;.so">libtcl&tcl-major-version;.so</primary>
[b28fd35]186 </indexterm>
187 </listitem>
188 </varlistentry>
189
[f0332af]190 <varlistentry id="libtclstub&tcl-major-version;.a">
191 <term><filename class="libraryfile">libtclstub&tcl-major-version;.a</filename></term>
[f1994dc]192 <listitem>
193 <para>The Tcl Stub library</para>
[f0332af]194 <indexterm zone="ch-tools-tcl libtclstub&tcl-major-version;.a">
195 <primary sortas="c-libtclstub&tcl-major-version;.a">libtclstub&tcl-major-version;.a</primary>
[f1994dc]196 </indexterm>
197 </listitem>
198 </varlistentry>
199
[b28fd35]200 </variablelist>
201
202 </sect2>
[673b0d8]203
204</sect1>
Note: See TracBrowser for help on using the repository browser.