[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 |
|
---|
[bc82645e] | 13 | <para><screen><userinput>cd unix
|
---|
[148bb04] | 14 | ./configure --prefix=/tools</userinput></screen></para>
|
---|
[484ceab8] | 15 |
|
---|
[2ea93a3] | 16 | <para>Build the package:</para>
|
---|
[484ceab8] | 17 |
|
---|
[0841437] | 18 | <para><screen><userinput>make</userinput></screen></para>
|
---|
[484ceab8] | 19 |
|
---|
[39dbad2] | 20 | <para>This package has a test suite available which can perform a number of
|
---|
[0841437] | 21 | checks to ensure it built correctly. Should you choose to run it, the
|
---|
| 22 | following command will do so:</para>
|
---|
| 23 |
|
---|
[b02848e] | 24 | <para><screen><userinput>TZ=UTC make test</userinput></screen></para>
|
---|
[0841437] | 25 |
|
---|
[3a788f0c] | 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 |
|
---|
[39dbad2] | 36 | <para>Sometimes, package test suites will give false failures. You can
|
---|
[0841437] | 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>
|
---|
[484ceab8] | 44 |
|
---|
[3a788f0c] | 45 | <para>Make a necessary symbolic link:</para>
|
---|
[148bb04] | 46 | <para><screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen></para>
|
---|
[bc82645e] | 47 |
|
---|
[0841437] | 48 | <caution><para>Do not remove the
|
---|
[ab6f1859] | 49 | <filename>tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
[03ae1f0] | 50 | will need its internal headers.</para></caution>
|
---|
[78deb7d] | 51 |
|
---|
[bc82645e] | 52 | </sect2>
|
---|
| 53 |
|
---|