source: chapter08/expect.xml@ 6bced9f

xry111/clfs-ng
Last change on this file since 6bced9f was 6bced9f, checked in by Xi Ruoyao <xry111@…>, 14 months ago

cross-ng: Adjust new devpts note in expect page

We don't need to leave our (false) "chroot" environment because we mount
devpts normally, instead of binding.

  • Property mode set to 100644
File size: 5.0 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-system-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-system-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-tmp-sbu;</seg>
42 <seg>&expect-tmp-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 <important>
86 <para>The test suite for Expect is considered critical.
87 Do not skip it under any circumstances.</para>
88 </important>
89
90 <para>To test the results, issue:</para>
91
92<screen><userinput remap="test">make test</userinput></screen>
93
94 <para>If any test fails with the message
95 <quote><computeroutput>The system has no more ptys. Ask your system
96 administrator to create more</computeroutput></quote>, it indicates
97 you've not mounted the
98 <systemitem class="filesystem">devpts</systemitem> file system
99 correctly. You need to read
100 <xref linkend='ch-tools-kernfs'/> again and ensure the
101 <systemitem class="filesystem">devpts</systemitem> file system (and
102 other virtual kernel file systems) mounted correctly.
103 This issue needs to be resolved before continuing.</para>
104
105 <para>Install the package:</para>
106
107<screen><userinput remap="install">make install
108ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
109
110 </sect2>
111
112 <sect2 id="contents-expect" role="content">
113 <title>Contents of Expect</title>
114
115 <segmentedlist>
116 <segtitle>Installed program</segtitle>
117 <segtitle>Installed library</segtitle>
118
119 <seglistitem>
120 <seg>expect</seg>
121 <seg>libexpect&expect-version;.so</seg>
122 </seglistitem>
123 </segmentedlist>
124
125 <variablelist>
126 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
127 <?dbfo list-presentation="list"?>
128 <?dbhtml list-presentation="table"?>
129
130 <varlistentry id="expect">
131 <term><command>expect</command></term>
132 <listitem>
133 <para>Communicates with other interactive programs according
134 to a script</para>
135 <indexterm zone="ch-system-expect expect">
136 <primary sortas="b-expect">expect</primary>
137 </indexterm>
138 </listitem>
139 </varlistentry>
140
141 <varlistentry id="libexpect">
142 <term><filename class="libraryfile">libexpect-&expect-version;.so</filename></term>
143 <listitem>
144 <para>Contains functions that allow Expect to be used as a Tcl
145 extension or to be used directly from C or C++ (without Tcl)</para>
146 <indexterm zone="ch-system-expect libexpect">
147 <primary sortas="c-libexpect-&expect-version;">libexpect-&expect-version;</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 </variablelist>
153
154 </sect2>
155
156</sect1>
Note: See TracBrowser for help on using the repository browser.