[bc82645e] | 1 | <sect2><title> </title><para> </para></sect2>
|
---|
| 2 |
|
---|
| 3 | <sect2>
|
---|
[2ea93a3] | 4 | <title>Installation of Tcl</title>
|
---|
[bc82645e] | 5 |
|
---|
[564768e] | 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>
|
---|
[484ceab8] | 10 |
|
---|
| 11 | <para>Prepare Tcl to be compiled:</para>
|
---|
| 12 |
|
---|
[21ba4e3] | 13 | <screen><userinput>cd unix
|
---|
| 14 | ./configure --prefix=/tools</userinput></screen>
|
---|
[484ceab8] | 15 |
|
---|
[2ea93a3] | 16 | <para>Build the package:</para>
|
---|
[484ceab8] | 17 |
|
---|
[21ba4e3] | 18 | <screen><userinput>make</userinput></screen>
|
---|
[484ceab8] | 19 |
|
---|
[1b62790] | 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>
|
---|
[0841437] | 26 |
|
---|
[21ba4e3] | 27 | <screen><userinput>TZ=UTC make test</userinput></screen>
|
---|
[0841437] | 28 |
|
---|
[3a788f0c] | 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 |
|
---|
[39dbad2] | 39 | <para>Sometimes, package test suites will give false failures. You can
|
---|
[35c2fa60] | 40 | consult the LFS Wiki at <ulink url="http://wiki.linuxfromscratch.org/"/>
|
---|
[0841437] | 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 |
|
---|
[21ba4e3] | 46 | <screen><userinput>make install</userinput></screen>
|
---|
[484ceab8] | 47 |
|
---|
[3a788f0c] | 48 | <para>Make a necessary symbolic link:</para>
|
---|
[0594698] | 49 |
|
---|
[21ba4e3] | 50 | <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
[bc82645e] | 51 |
|
---|
[0594698] | 52 | <!-- HACK - Force some whitespace to appease tidy -->
|
---|
| 53 | <literallayout></literallayout>
|
---|
| 54 |
|
---|
[0841437] | 55 | <caution><para>Do not remove the
|
---|
[ab6f1859] | 56 | <filename>tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
[03ae1f0] | 57 | will need its internal headers.</para></caution>
|
---|
[78deb7d] | 58 |
|
---|
[bc82645e] | 59 | </sect2>
|
---|
| 60 |
|
---|