[5888299] | 1 | <sect1 id="ch05-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 |
|
---|
[f27835d] | 7 | <screen>Estimated build time: &tcl-time-tools;
|
---|
| 8 | Estimated required disk space: &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,
|
---|
| 21 | to know that our most important tools are working properly.</para>
|
---|
| 22 |
|
---|
[d27a27b] | 23 | <para>Prepare Tcl for compilation:</para>
|
---|
[73aedd1d] | 24 |
|
---|
| 25 | <screen><userinput>cd unix
|
---|
| 26 | ./configure --prefix=/tools</userinput></screen>
|
---|
| 27 |
|
---|
| 28 | <para>Build the package:</para>
|
---|
| 29 |
|
---|
| 30 | <screen><userinput>make</userinput></screen>
|
---|
| 31 |
|
---|
| 32 | <para>This package has a test suite available which can perform a number of
|
---|
| 33 | checks to ensure it built correctly. However, the Tcl test suite in this
|
---|
| 34 | chapter is known to experience failures under certain host conditions that are
|
---|
| 35 | not fully understood. Therefore, test suite failures here are not surprising,
|
---|
| 36 | but are not considered critical. Should you choose to run the test suite, the
|
---|
| 37 | following command will do so:</para>
|
---|
| 38 |
|
---|
| 39 | <screen><userinput>TZ=UTC make test</userinput></screen>
|
---|
| 40 |
|
---|
[5763f675] | 41 | <para>The meaning of the make parameter:</para>
|
---|
[73aedd1d] | 42 |
|
---|
| 43 | <itemizedlist>
|
---|
| 44 | <listitem><para><userinput>TZ=UTC</userinput>: This sets the time zone to
|
---|
| 45 | Coordinated Universal Time (UTC) also known as Greenwich Mean Time (GMT), but
|
---|
| 46 | only for the duration of the test suite run. This ensures the clock tests are
|
---|
[f4993cf] | 47 | exercised correctly. More information on the TZ environment variable will be
|
---|
| 48 | given later on in <xref linkend="chapter07"/>.</para></listitem>
|
---|
[73aedd1d] | 49 | </itemizedlist>
|
---|
| 50 |
|
---|
| 51 | <para>Sometimes, package test suites will give false failures. You can
|
---|
| 52 | consult the LFS Wiki at <ulink url="http://wiki.linuxfromscratch.org/"/>
|
---|
| 53 | to verify that these failures are normal. This applies to all tests
|
---|
| 54 | throughout the book.</para>
|
---|
| 55 |
|
---|
| 56 | <para>Install the package:</para>
|
---|
| 57 |
|
---|
| 58 | <screen><userinput>make install</userinput></screen>
|
---|
| 59 |
|
---|
[f4993cf] | 60 | <!-- HACK - Force some whitespace to appease tidy -->
|
---|
| 61 | <literallayout></literallayout>
|
---|
| 62 |
|
---|
| 63 | <warning><para><emphasis>Do not remove</emphasis> the
|
---|
[73aedd1d] | 64 | <filename>tcl&tcl-version;</filename> source directory yet, as the next package
|
---|
[f4993cf] | 65 | will need its internal headers.</para></warning>
|
---|
| 66 |
|
---|
| 67 | <!-- HACK - Force some whitespace to appease tidy -->
|
---|
| 68 | <literallayout></literallayout>
|
---|
[73aedd1d] | 69 |
|
---|
| 70 | <para>Make a necessary symbolic link:</para>
|
---|
| 71 |
|
---|
| 72 | <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>
|
---|
| 73 |
|
---|
| 74 | </sect2>
|
---|
[bc82645e] | 75 |
|
---|
[5888299] | 76 | &aa-tcl-shortdesc;
|
---|
| 77 | &aa-tcl-desc;
|
---|
| 78 |
|
---|
[bc82645e] | 79 | </sect1>
|
---|
| 80 |
|
---|