source: chapter07/expect.xml@ 595ff03

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 595ff03 was 595ff03, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Tweaks to cross2 book

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

  • Property mode set to 100644
File size: 4.4 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 the
66 <command>configure</command> where the
67 <command>tclConfig.sh</command> 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. Using this option avoids conditions where
76 <command>configure</command> fails because it cannot automatically
77 discover the location of Tcl's headers.</para>
78 </listitem>
79 </varlistentry>
80
81 </variablelist>
82
83 <para>Build the package:</para>
84
85<screen><userinput remap="make">make</userinput></screen>
86
87 <para>Install the package:</para>
88
89<screen><userinput remap="install">make install
90ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
91
92 </sect2>
93
94 <sect2 id="contents-expect" role="content">
95 <title>Contents of Expect</title>
96
97 <segmentedlist>
98 <segtitle>Installed program</segtitle>
99 <segtitle>Installed library</segtitle>
100
101 <seglistitem>
102 <seg>expect</seg>
103 <seg>libexpect-&expect-lib-version;.so</seg>
104 </seglistitem>
105 </segmentedlist>
106
107 <variablelist>
108 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
109 <?dbfo list-presentation="list"?>
110 <?dbhtml list-presentation="table"?>
111
112 <varlistentry id="expect">
113 <term><command>expect</command></term>
114 <listitem>
115 <para>Communicates with other interactive programs according
116 to a script</para>
117 <indexterm zone="ch-tools-expect expect">
118 <primary sortas="b-expect">expect</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry id="libexpect">
124 <term><filename class="libraryfile">libexpect-&expect-lib-version;.so</filename></term>
125 <listitem>
126 <para>Contains functions that allow Expect to be used as a Tcl
127 extension or to be used directly from C or C++ (without Tcl)</para>
128 <indexterm zone="ch-tools-expect libexpect">
129 <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
130 </indexterm>
131 </listitem>
132 </varlistentry>
133
134 </variablelist>
135
136 </sect2>
137
138</sect1>
Note: See TracBrowser for help on using the repository browser.