1 | <sect2><title> </title><para> </para></sect2>
|
---|
2 |
|
---|
3 | <sect2>
|
---|
4 | <title>Installation of Tcl</title>
|
---|
5 |
|
---|
6 | <para>This package and the next two are only installed to be able to run the
|
---|
7 | test suites for GCC and Binutils. Installing three packages just for testing
|
---|
8 | purposes may seem like overkill, but it is very reassuring, if not essential,
|
---|
9 | to know that our most important tools are working properly.</para>
|
---|
10 |
|
---|
11 | <para>Prepare Tcl to be compiled:</para>
|
---|
12 |
|
---|
13 | <screen><userinput>cd unix
|
---|
14 | ./configure --prefix=/tools</userinput></screen>
|
---|
15 |
|
---|
16 | <para>Build the package:</para>
|
---|
17 |
|
---|
18 | <screen><userinput>make</userinput></screen>
|
---|
19 |
|
---|
20 | <para>This package has a test suite available which can perform a number of
|
---|
21 | checks to ensure it built correctly. However, the Tcl test suite here in
|
---|
22 | Chapter 5 is known to experience failures under certain host conditions that
|
---|
23 | are not fully understood. Therefore, test suite failures here are not
|
---|
24 | surprising, but are not considered critical. Should you choose to run the test
|
---|
25 | suite, the following command will do so:</para>
|
---|
26 |
|
---|
27 | <screen><userinput>TZ=UTC make test</userinput></screen>
|
---|
28 |
|
---|
29 | <para>The meaning of the make option:</para>
|
---|
30 |
|
---|
31 | <itemizedlist>
|
---|
32 | <listitem><para><userinput>TZ=UTC</userinput>: This sets the time zone to
|
---|
33 | Coordinated Universal Time (UTC) also known as Greenwich Mean Time (GMT), but
|
---|
34 | only for the duration of the test suite run. This ensures the clock tests are
|
---|
35 | exercised correctly. More information on the TZ environment variable is
|
---|
36 | available later on in Chapter 7.</para></listitem>
|
---|
37 | </itemizedlist>
|
---|
38 |
|
---|
39 | <para>Sometimes, package test suites will give false failures. You can
|
---|
40 | consult the LFS Wiki at <ulink url="http://wiki.linuxfromscratch.org/"/>
|
---|
41 | to verify that these failures are normal. This applies to all tests
|
---|
42 | throughout the book.</para>
|
---|
43 |
|
---|
44 | <para>Install the package:</para>
|
---|
45 |
|
---|
46 | <screen><userinput>make install</userinput></screen>
|
---|
47 |
|
---|
48 | <important><para><emphasis>Do not remove</emphasis> the
|
---|
49 | <filename>tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
50 | will need its internal headers.</para></important>
|
---|
51 |
|
---|
52 | <para>Make a necessary symbolic link:</para>
|
---|
53 |
|
---|
54 | <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
55 |
|
---|
56 | </sect2>
|
---|
57 |
|
---|