source: chapter07/expect.xml@ aefc822

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 ml-11.0 multilib trunk xry111/git-transition xry111/glibc-2.34 xry111/tester-nohack xry111/usr-move
Last change on this file since aefc822 was aefc822, checked in by Bruce Dubbs <bdubbs@…>, 18 months ago

Updates to the rest of cross2 Chapter 7.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11919 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-tools-expect" role="wrap">
9 <?dbhtml filename="expect.html"?>
10
11 <sect1info condition="script">
12 <productname>expect</productname>
13 <productnumber>&expect-version;</productnumber>
14 <address>&expect-url;</address>
15 </sect1info>
16
17 <title>Expect-&expect-version;</title>
18
19 <indexterm zone="ch-tools-expect">
20 <primary sortas="a-Expect">Expect</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The <application>Expect</application> package contains tools for
27 automating, via scripted dialogues, interactive applications such as
28 <command>telnet</command>, <command>ftp</command>,
29 <command>passwd</command>, <command>fsck</command>,
30 <command>rlogin</command>, and <command>tip</command>.
31 <application>Expect</application> is also useful for testing these same
32 applications as well as easing all sorts of tasks that are prohibitively
33 difficult with anything else. The <application>DejaGnu</application>
34 framework is written in <application>Expect</application>.</para>
35
36 <segmentedlist>
37 <segtitle>&buildtime;</segtitle>
38 <segtitle>&diskspace;</segtitle>
39
40 <seglistitem>
41 <seg>&expect-ch5-sbu;</seg>
42 <seg>&expect-ch5-du;</seg>
43 </seglistitem>
44 </segmentedlist>
45
46 </sect2>
47
48 <sect2 role="installation">
49 <title>Installation of Expect</title>
50
51 <para>Prepare Expect for compilation:</para>
52
53<screen><userinput remap="configure">./configure --prefix=/usr \
54 --with-tcl=/usr/lib \
55 --enable-shared \
56 --mandir=/usr/share/man \
57 --with-tclinclude=/usr/include</userinput></screen>
58
59 <variablelist>
60 <title>The meaning of the configure options:</title>
61
62 <varlistentry>
63 <term><parameter>--with-tcl=/usr/lib</parameter></term>
64 <listitem>
65 <para>This parameter is needed to tell
66 <command>configure</command> where the
67 <command>tclConfig.sh</command> script is located.</para>
68 </listitem>
69 </varlistentry>
70
71 <varlistentry>
72 <term><parameter>--with-tclinclude=/usr/include</parameter></term>
73 <listitem>
74 <para>This explicitly tells Expect where to find Tcl's internal
75 headers.</para>
76 </listitem>
77 </varlistentry>
78
79 </variablelist>
80
81 <para>Build the package:</para>
82
83<screen><userinput remap="make">make</userinput></screen>
84
85 <para>Install the package:</para>
86
87<screen><userinput remap="install">make install
88ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
89
90 </sect2>
91
92 <sect2 id="contents-expect" role="content">
93 <title>Contents of Expect</title>
94
95 <segmentedlist>
96 <segtitle>Installed program</segtitle>
97 <segtitle>Installed library</segtitle>
98
99 <seglistitem>
100 <seg>expect</seg>
101 <seg>libexpect-&expect-lib-version;.so</seg>
102 </seglistitem>
103 </segmentedlist>
104
105 <variablelist>
106 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
107 <?dbfo list-presentation="list"?>
108 <?dbhtml list-presentation="table"?>
109
110 <varlistentry id="expect">
111 <term><command>expect</command></term>
112 <listitem>
113 <para>Communicates with other interactive programs according
114 to a script</para>
115 <indexterm zone="ch-tools-expect expect">
116 <primary sortas="b-expect">expect</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry id="libexpect">
122 <term><filename class="libraryfile">libexpect-&expect-lib-version;.so</filename></term>
123 <listitem>
124 <para>Contains functions that allow Expect to be used as a Tcl
125 extension or to be used directly from C or C++ (without Tcl)</para>
126 <indexterm zone="ch-tools-expect libexpect">
127 <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 </variablelist>
133
134 </sect2>
135
136</sect1>
Note: See TracBrowser for help on using the repository browser.