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 | <para><screen><userinput>cd unix
|
---|
14 | ./configure --prefix=/tools</userinput></screen></para>
|
---|
15 |
|
---|
16 | <para>Build the package:</para>
|
---|
17 |
|
---|
18 | <para><screen><userinput>make</userinput></screen></para>
|
---|
19 |
|
---|
20 | <para>This package has a test suite available which can perform a number of
|
---|
21 | checks to ensure it built correctly. Should you choose to run it, the
|
---|
22 | following command will do so:</para>
|
---|
23 |
|
---|
24 | <para><screen><userinput>TZ=UTC make test</userinput></screen></para>
|
---|
25 |
|
---|
26 | <para>The meaning of the make option:</para>
|
---|
27 |
|
---|
28 | <itemizedlist>
|
---|
29 | <listitem><para><userinput>TZ=UTC</userinput>: This sets the time zone to
|
---|
30 | Coordinated Universal Time (UTC) also known as Greenwich Mean Time (GMT), but
|
---|
31 | only for the duration of the test suite run. This ensures the clock tests are
|
---|
32 | exercised correctly. More information on the TZ environment variable is
|
---|
33 | available later on in Chapter 7.</para></listitem>
|
---|
34 | </itemizedlist>
|
---|
35 |
|
---|
36 | <para>Sometimes, package test suites will give false failures. You can
|
---|
37 | consult the LFS Wiki at <ulink url="http://wiki.linuxfromscratch.org/"/>
|
---|
38 | to verify that these failures are normal. This applies to all tests
|
---|
39 | throughout the book.</para>
|
---|
40 |
|
---|
41 | <para>Install the package:</para>
|
---|
42 |
|
---|
43 | <para><screen><userinput>make install</userinput></screen></para>
|
---|
44 |
|
---|
45 | <para>Make a necessary symbolic link:</para>
|
---|
46 | <para><screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen></para>
|
---|
47 |
|
---|
48 | <caution><para>Do not remove the
|
---|
49 | <filename>tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
50 | will need its internal headers.</para></caution>
|
---|
51 |
|
---|
52 | </sect2>
|
---|
53 |
|
---|