source: chapter05/tcl.xml@ 6614263

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 6614263 was 6614263, checked in by Jeremy Huntwork <jhuntwork@…>, 19 years ago

Changed the instructions for setting the TCLPATH variable. Needed to be in one directory higher to retrieve the proper path from pwd.

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

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