[3be4d97] | 1 | <sect1 id="ch-tools-tcl" xreflabel="Tcl">
|
---|
[2ea93a3] | 2 | <title>Installing Tcl-&tcl-version;</title>
|
---|
[bc82645e] | 3 | <?dbhtml filename="tcl.html" dir="chapter05"?>
|
---|
| 4 |
|
---|
[5888299] | 5 | <para>The Tcl package contains the Tool Command Language.</para>
|
---|
| 6 |
|
---|
[69276a94] | 7 | <screen>&buildtime; &tcl-time-tools;
|
---|
| 8 | &diskspace; &tcl-compsize-tools;</screen>
|
---|
[bc82645e] | 9 |
|
---|
[5888299] | 10 | &aa-tcl-down;
|
---|
[d0dfce4] | 11 | &aa-tcl-dep;
|
---|
[73aedd1d] | 12 |
|
---|
| 13 | <sect2><title> </title><para> </para></sect2>
|
---|
| 14 |
|
---|
| 15 | <sect2>
|
---|
| 16 | <title>Installation of Tcl</title>
|
---|
| 17 |
|
---|
| 18 | <para>This package and the next two are only installed to be able to run the
|
---|
| 19 | test suites for GCC and Binutils. Installing three packages just for testing
|
---|
| 20 | purposes may seem like overkill, but it is very reassuring, if not essential,
|
---|
[443cace] | 21 | to know that our most important tools are working properly. Even if you are
|
---|
| 22 | not running the test suites here in this chapter as per our recommendation,
|
---|
| 23 | these packages are still required for the test suites in the next
|
---|
| 24 | chapter.</para>
|
---|
[73aedd1d] | 25 |
|
---|
[d27a27b] | 26 | <para>Prepare Tcl for compilation:</para>
|
---|
[73aedd1d] | 27 |
|
---|
| 28 | <screen><userinput>cd unix
|
---|
| 29 | ./configure --prefix=/tools</userinput></screen>
|
---|
| 30 |
|
---|
| 31 | <para>Build the package:</para>
|
---|
| 32 |
|
---|
| 33 | <screen><userinput>make</userinput></screen>
|
---|
| 34 |
|
---|
[31b2ae6] | 35 | <para>As discussed earlier, we don't recommend running the test suites for the
|
---|
| 36 | temporary tools here in this chapter. If you still want to run the Tcl test
|
---|
| 37 | suite anyway, the following command will do so. However, you should be aware
|
---|
| 38 | that the Tcl test suite is sometimes known to experience failures under certain
|
---|
| 39 | host conditions that are not fully understood. Therefore, test suite failures
|
---|
| 40 | here are not surprising, but are not considered critical:</para>
|
---|
[73aedd1d] | 41 |
|
---|
| 42 | <screen><userinput>TZ=UTC make test</userinput></screen>
|
---|
| 43 |
|
---|
[5763f675] | 44 | <para>The meaning of the make parameter:</para>
|
---|
[73aedd1d] | 45 |
|
---|
| 46 | <itemizedlist>
|
---|
| 47 | <listitem><para><userinput>TZ=UTC</userinput>: This sets the time zone to
|
---|
| 48 | Coordinated Universal Time (UTC) also known as Greenwich Mean Time (GMT), but
|
---|
| 49 | only for the duration of the test suite run. This ensures the clock tests are
|
---|
[f4993cf] | 50 | exercised correctly. More information on the TZ environment variable will be
|
---|
[dcff046] | 51 | given later on in <xref linkend="chapter-bootscripts"/>.</para></listitem>
|
---|
[73aedd1d] | 52 | </itemizedlist>
|
---|
| 53 |
|
---|
[daaa0941] | 54 | <para>Sometimes package test suites will give false failures. You can
|
---|
| 55 | consult the LFS Wiki at <ulink url="&wiki-root;"/> to verify that these
|
---|
| 56 | failures are normal. This applies to all tests throughout the book.</para>
|
---|
[73aedd1d] | 57 |
|
---|
| 58 | <para>Install the package:</para>
|
---|
| 59 |
|
---|
| 60 | <screen><userinput>make install</userinput></screen>
|
---|
| 61 |
|
---|
[f4993cf] | 62 | <!-- HACK - Force some whitespace to appease tidy -->
|
---|
| 63 | <literallayout></literallayout>
|
---|
| 64 |
|
---|
| 65 | <warning><para><emphasis>Do not remove</emphasis> the
|
---|
[73aedd1d] | 66 | <filename>tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
[f4993cf] | 67 | will need its internal headers.</para></warning>
|
---|
| 68 |
|
---|
| 69 | <!-- HACK - Force some whitespace to appease tidy -->
|
---|
| 70 | <literallayout></literallayout>
|
---|
[73aedd1d] | 71 |
|
---|
| 72 | <para>Make a necessary symbolic link:</para>
|
---|
| 73 |
|
---|
| 74 | <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
| 75 |
|
---|
| 76 | </sect2>
|
---|
[bc82645e] | 77 |
|
---|
[5888299] | 78 | &aa-tcl-shortdesc;
|
---|
| 79 | &aa-tcl-desc;
|
---|
| 80 |
|
---|
[bc82645e] | 81 | </sect1>
|
---|
| 82 |
|
---|