9.2. Tcl-8.4.12

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc1-PowerPC

### Chapter 9. Constructing Testsuite Tools

- Prev

  Constructing Testsuite Tools

- Next

  Expect-5.43.0

- Up.
- Home

# 9.2. Tcl-8.4.12

The Tcl package contains the Tool Command Language.

## 9.2.1. Installation of Tcl

This package and the next two (Expect and DejaGNU) are installed to support running the test suites for GCC and Binutils. Installing three packages for testing purposes may seem excessive, but it is very reassuring, if not essential, to know that the most important tools are working properly.

First, fix a syntax error in the configure script:

    cd unix
    sed -i "s/relid'/relid/" configure

Prepare Tcl for compilation:

    ./configure --prefix=/tools

Build the package:

    make

Install the package:

    make install

Tcl's private headers files are needed for the next package, Expect. Install them into /tools:

    make install-private-headers

Now make a necessary symbolic link:

    ln -sv tclsh8.4 /tools/bin/tclsh

## 9.2.2. Contents of Tcl

Installed programs: tclsh (link to tclsh8.4) and tclsh8.4
Installed library: libtcl8.4.so

### Short Descriptions

tclsh8.4 | The Tcl command shell
tclsh | A link to tclsh8.4
`libtcl8.4.so` | The Tcl library

- Prev

  Constructing Testsuite Tools

- Next

  Expect-5.43.0

- Up.
- Home.