source: chapter08/expect.xml@ 460f575

arm
Last change on this file since 460f575 was 460f575, checked in by William Harrington <kb0iic@…>, 2 years ago

Initial LFS-ARM book.

  • Property mode set to 100644
File size: 4.7 KB
RevLine 
[fcc02767]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
[593b439a]8<sect1 id="ch-system-expect" role="wrap">
[fcc02767]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
[593b439a]19 <indexterm zone="ch-system-expect">
[fcc02767]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>
[fb386e0]41 <seg>&expect-tmp-sbu;</seg>
42 <seg>&expect-tmp-du;</seg>
[fcc02767]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
[460f575]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 \
58 --build=$(uname -m)-unknown-linux-gnu</userinput></screen>
[fcc02767]59
60 <variablelist>
61 <title>The meaning of the configure options:</title>
62
63 <varlistentry>
64 <term><parameter>--with-tcl=/usr/lib</parameter></term>
65 <listitem>
[d672ab7]66 <para>This parameter is needed to tell
[fcc02767]67 <command>configure</command> where the
[aefc822]68 <command>tclConfig.sh</command> script is located.</para>
[fcc02767]69 </listitem>
70 </varlistentry>
71
72 <varlistentry>
73 <term><parameter>--with-tclinclude=/usr/include</parameter></term>
74 <listitem>
75 <para>This explicitly tells Expect where to find Tcl's internal
[aefc822]76 headers.</para>
[fcc02767]77 </listitem>
78 </varlistentry>
79
[460f575]80 <varlistentry>
81 <term><parameter>--build=$(uname -m)-uknown-linux-gnu</parameter></term>
82 <listitem>
83 <para>This tells Expect what the architecture build of the machine
84 is for ARM.</para>
85 </listitem>
86 </varlistentry>
87
[fcc02767]88 </variablelist>
89
90 <para>Build the package:</para>
91
92<screen><userinput remap="make">make</userinput></screen>
93
[28e610db]94 <para>To test the results, issue:</para>
95
96<screen><userinput remap="test">make test</userinput></screen>
97
[fcc02767]98 <para>Install the package:</para>
99
100<screen><userinput remap="install">make install
101ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
102
103 </sect2>
104
105 <sect2 id="contents-expect" role="content">
106 <title>Contents of Expect</title>
107
108 <segmentedlist>
109 <segtitle>Installed program</segtitle>
110 <segtitle>Installed library</segtitle>
111
112 <seglistitem>
113 <seg>expect</seg>
[85d9756b]114 <seg>libexpect&expect-version;.so</seg>
[fcc02767]115 </seglistitem>
116 </segmentedlist>
117
118 <variablelist>
119 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
120 <?dbfo list-presentation="list"?>
121 <?dbhtml list-presentation="table"?>
122
123 <varlistentry id="expect">
124 <term><command>expect</command></term>
125 <listitem>
126 <para>Communicates with other interactive programs according
127 to a script</para>
[593b439a]128 <indexterm zone="ch-system-expect expect">
[fcc02767]129 <primary sortas="b-expect">expect</primary>
130 </indexterm>
131 </listitem>
132 </varlistentry>
133
134 <varlistentry id="libexpect">
[85d9756b]135 <term><filename class="libraryfile">libexpect-&expect-version;.so</filename></term>
[fcc02767]136 <listitem>
137 <para>Contains functions that allow Expect to be used as a Tcl
138 extension or to be used directly from C or C++ (without Tcl)</para>
[593b439a]139 <indexterm zone="ch-system-expect libexpect">
[85d9756b]140 <primary sortas="c-libexpect-&expect-version;">libexpect-&expect-version;</primary>
[fcc02767]141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 </variablelist>
146
147 </sect2>
148
149</sect1>
Note: See TracBrowser for help on using the repository browser.