Expect-5.45

Allikas: Kuutõrvaja
Redaktsioon seisuga 1. juuni 2011, kell 15:21 kasutajalt Jj (arutelu | kaastöö) (Uus lehekülg: 'The Expect package contains a program for carrying out scripted dialogues with other interactive programs. Expect pakett sisaldab programmi mis veab skriptitud dialooge teiste inte...')
(erin) ←Vanem redaktsioon | Viimane redaktsiooni (erin) | Uuem redaktsioon→ (erin)

The Expect package contains a program for carrying out scripted dialogues with other interactive programs.

Expect pakett sisaldab programmi mis veab skriptitud dialooge teiste interaktiivsete programmidega.

Umbkaudne ehitamise aeg: 0.1 SBU Vajaminev kettaruum: 4.1 MB

5.12.1. Expecti paigaldus

First, force Expect's configure script to use /bin/stty instead of a /usr/local/bin/stty it may find on the host system. This will ensure that our test suite tools remain sane for the final builds of our toolchain:

Esiteks tuleb sundida Expecti konfigureerimise skripti kasutama /bin/stty'd /usr/local/bin/stty asemel, mille ta võib baas süsteemist leida. See kindlustab, et testide korrektse töö lõplikus LFS süsteemi lõplikus ehitamisefaasis.

cp -v configure{,.orig}
sed 's:/usr/local/bin:/bin:' configure.orig > configure

Valmistame Expecti kompileerimiseks ette:

./configure --prefix=/tools --with-tcl=/tools/lib \
  --with-tclinclude=/tools/include

Konfigureerimise võtme tähendus:

  • --with-tcl=/tools/lib

This ensures that the configure script finds the Tcl installation in the temporary tools location instead of possibly locating an existing one on the host system.

  • --with-tclinclude=/tools/include

This explicitly tells Expect where to find Tcl's internal headers. Using this option avoids conditions where configure fails because it cannot automatically discover the location of Tcl's headers.

Kompileerime paketi:

make

Kompileerimise lõppedes võib soovi korral käivitada täiendava testi. Ajutiste töövahendite puhul pole see oluline, seega võib järgmise sammu vahele jätta. Soovides testi käivita, sisesta käsk:

make test

Note that the Expect test suite is known to experience failures under certain host conditions that are not within our control. Therefore, test suite failures here are not surprising and are not considered critical.

Install the package:

make SCRIPTS="" install The meaning of the make parameter:

SCRIPTS="" This prevents installation of the supplementary Expect scripts, which are not needed. 5.12.2. Contents of Expect

Installed program: expect Installed library: libexpect-5.45.a Short Descriptions

expect Communicates with other interactive programs according to a script libexpect-5.45.a Contains functions that allow Expect to be used as a Tcl extension or to be used directly from C or C++ (without Tcl)