source: chapter05/tcl.xml@ 646a184

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 646a184 was 646a184, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Change cp syntax in Tcl instructions to match rest of book - add verbose switch

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7217 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-tools-tcl" role="wrap">
7<title>Tcl-&tcl-version;</title>
8<?dbhtml filename="tcl.html"?>
9
10<indexterm zone="ch-tools-tcl"><primary sortas="a-Tcl">Tcl</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Tcl package contains the Tool Command Language.</para>
14
15<segmentedlist>
16<segtitle>&buildtime;</segtitle>
17<segtitle>&diskspace;</segtitle>
18<seglistitem><seg>0.9 SBU</seg><seg>23.3 MB</seg></seglistitem>
19</segmentedlist>
20
21<segmentedlist>
22<segtitle>&dependencies;</segtitle>
23<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
24GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
25</segmentedlist>
26
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of Tcl</title>
31
32<para>This package and the next two (Expect and DejaGNU) are
33installed to support running the test suites for GCC and Binutils.
34Installing three packages for testing purposes may seem excessive, but
35it is very reassuring, if not essential, to know that the most
36important tools are working properly. Even if the test suites are not
37run in this chapter (they are not mandatory), these packages
38are required to run the test suites in <xref
39linkend="chapter-building-system"/>.</para>
40
41<para>Tcl's configure script has a syntax error:</para>
42<screen><userinput>cd unix
43cp -v configure{,.orig}
44sed "s/relid'/relid/" configure.orig &gt; configure</userinput></screen>
45
46<para>Prepare Tcl for compilation:</para>
47
48<screen><userinput>./configure --prefix=/tools</userinput></screen>
49
50<para>Build the package:</para>
51
52<screen><userinput>make</userinput></screen>
53
54<para>To test the results, issue: <userinput>TZ=UTC make test</userinput>.
55The Tcl test suite is known to experience failures
56under certain host conditions that are not fully understood.
57Therefore, test suite failures here are not surprising, and are not
58considered critical. The <parameter>TZ=UTC</parameter> parameter sets
59the time zone to Coordinated Universal Time (UTC), also known as
60Greenwich Mean Time (GMT), but only for the duration of the test suite
61run. This ensures that the clock tests are exercised correctly.
62Details on the <envar>TZ</envar> environment variable are provided in
63<xref linkend="chapter-bootscripts"/>.</para>
64
65<para>Install the package:</para>
66
67<screen><userinput>make install</userinput></screen>
68
69<warning><para><emphasis>Do not</emphasis> remove the
70<filename class="directory">tcl&tcl-version;</filename> source directory yet, as the next package
71will need its internal headers.</para></warning>
72
73<para>Set a variable containing the full path of the current directory.
74The next package, Expect, will use this variable to find Tcl's headers.</para>
75
76<screen><userinput>cd ..
77export TCLPATH=`pwd`</userinput></screen>
78
79<para>Now make a necessary symbolic link:</para>
80
81<screen><userinput>ln -sv tclsh8.4 /tools/bin/tclsh</userinput></screen>
82
83</sect2>
84
85<sect2 id="contents-tcl" role="content"><title>Contents of Tcl</title>
86
87<segmentedlist>
88<segtitle>Installed programs</segtitle>
89<segtitle>Installed library</segtitle>
90<seglistitem><seg>tclsh (link to tclsh8.4) and tclsh8.4</seg><seg>libtcl8.4.so</seg></seglistitem>
91</segmentedlist>
92
93<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
94<?dbfo list-presentation="list"?>
95<?dbhtml list-presentation="table"?>
96
97<varlistentry id="tclsh8.4">
98<term><command>tclsh8.4</command></term>
99<listitem>
100<para>The Tcl command shell</para>
101<indexterm zone="ch-tools-tcl tclsh8.4"><primary sortas="b-tclsh8.4">tclsh8.4</primary></indexterm>
102</listitem>
103</varlistentry>
104
105<varlistentry id="tclsh">
106<term><command>tclsh</command></term>
107<listitem>
108<para>A link to tclsh8.4</para>
109<indexterm zone="ch-tools-tcl tclsh"><primary sortas="b-tclsh">tclsh</primary></indexterm>
110</listitem>
111</varlistentry>
112
113<varlistentry id="libtcl8.4.so">
114<term><filename class="libraryfile">libtcl8.4.so</filename></term>
115<listitem>
116<para>The Tcl library</para>
117<indexterm zone="ch-tools-tcl libtcl8.4.so"><primary sortas="c-libtcl8.4.so">libtcl8.4.so</primary></indexterm>
118</listitem>
119</varlistentry>
120</variablelist>
121
122</sect2>
123
124</sect1>
125
Note: See TracBrowser for help on using the repository browser.