source: chapter08/expect.xml@ 8b9efe67

xry111/arm64 xry111/arm64-12.0
Last change on this file since 8b9efe67 was 85d9756b, checked in by Xi Ruoyao <xry111@…>, 2 years ago

expect: fix library name in description, and remove unused expect-lib-version

  • Property mode set to 100644
File size: 4.3 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 <para>To test the results, issue:</para>
86
87<screen><userinput remap="test">make test</userinput></screen>
88
89 <para>Install the package:</para>
90
91<screen><userinput remap="install">make install
92ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
93
94 </sect2>
95
96 <sect2 id="contents-expect" role="content">
97 <title>Contents of Expect</title>
98
99 <segmentedlist>
100 <segtitle>Installed program</segtitle>
101 <segtitle>Installed library</segtitle>
102
103 <seglistitem>
104 <seg>expect</seg>
105 <seg>libexpect&expect-version;.so</seg>
106 </seglistitem>
107 </segmentedlist>
108
109 <variablelist>
110 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
111 <?dbfo list-presentation="list"?>
112 <?dbhtml list-presentation="table"?>
113
114 <varlistentry id="expect">
115 <term><command>expect</command></term>
116 <listitem>
117 <para>Communicates with other interactive programs according
118 to a script</para>
119 <indexterm zone="ch-system-expect expect">
120 <primary sortas="b-expect">expect</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="libexpect">
126 <term><filename class="libraryfile">libexpect-&expect-version;.so</filename></term>
127 <listitem>
128 <para>Contains functions that allow Expect to be used as a Tcl
129 extension or to be used directly from C or C++ (without Tcl)</para>
130 <indexterm zone="ch-system-expect libexpect">
131 <primary sortas="c-libexpect-&expect-version;">libexpect-&expect-version;</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 </variablelist>
137
138 </sect2>
139
140</sect1>
Note: See TracBrowser for help on using the repository browser.