Changeset 23102484 for chapter05/expect.xml
- Timestamp:
- 01/17/2006 08:46:21 PM (19 years ago)
- Children:
- f658b21
- Parents:
- 5aa74f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/expect.xml
r5aa74f2 r23102484 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-expect" role="wrap"> 7 <title>Expect-&expect-version;</title> 8 <?dbhtml filename="expect.html"?> 9 <?dbhtml filename="expect.html"?> 9 10 10 <indexterm zone="ch-tools-expect"><primary sortas="a-Expect">Expect</primary></indexterm>11 <title>Expect-&expect-version;</title> 11 12 12 <sect2 role="package"><title/>13 <para>The Expect package contains a program for carrying out scripted dialogues 14 with other interactive programs.</para>13 <indexterm zone="ch-tools-expect"> 14 <primary sortas="a-Expect">Expect</primary> 15 </indexterm> 15 16 16 <segmentedlist> 17 <segtitle>&buildtime;</segtitle> 18 <segtitle>&diskspace;</segtitle> 19 <seglistitem><seg>0.1 SBU</seg><seg>4.0 MB</seg></seglistitem> 20 </segmentedlist> 17 <sect2 role="package"> 18 <title/> 21 19 22 <segmentedlist> 23 <segtitle>&dependencies;</segtitle> 24 <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, 25 GCC, Glibc, Grep, Make, Patch, Sed, and Tcl</seg></seglistitem> 26 </segmentedlist> 27 </sect2> 20 <para>The Expect package contains a program for carrying out scripted 21 dialogues with other interactive programs.</para> 28 22 29 <sect2 role="installation"> 30 <title>Installation of Expect</title> 23 <segmentedlist> 24 <segtitle>&buildtime;</segtitle> 25 <segtitle>&diskspace;</segtitle> 31 26 32 <para>First, fix a bug that can result in false failures during the GCC test 33 suite run:</para> 27 <seglistitem> 28 <seg>0.1 SBU</seg> 29 <seg>4.0 MB</seg> 30 </seglistitem> 31 </segmentedlist> 32 33 <segmentedlist> 34 <segtitle>&dependencies;</segtitle> 35 36 <seglistitem> 37 <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, 38 Patch, Sed, and Tcl</seg> 39 </seglistitem> 40 </segmentedlist> 41 42 </sect2> 43 44 <sect2 role="installation"> 45 <title>Installation of Expect</title> 46 47 <para>First, fix a bug that can result in false failures during the GCC test 48 suite run:</para> 34 49 35 50 <screen><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen> 36 51 37 <para>Now prepare Expect for compilation:</para>52 <para>Now prepare Expect for compilation:</para> 38 53 39 54 <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \ 40 55 --with-tclinclude=/tools/include --with-x=no</userinput></screen> 41 56 42 <para>The meaning of the configure options:</para> 57 <variablelist> 58 <title>The meaning of the configure options:</title> 43 59 44 <variablelist> 45 <varlistentry> 46 <term><parameter>--with-tcl=/tools/lib</parameter></term> 47 <listitem><para>This ensures that the configure script finds the Tcl installation in 48 the temporary tools location instead of possibly locating an existing 49 one on the host system.</para></listitem> 50 </varlistentry> 60 <varlistentry> 61 <term><parameter>--with-tcl=/tools/lib</parameter></term> 62 <listitem> 63 <para>This ensures that the configure script finds the Tcl 64 installation in the temporary tools location instead of possibly 65 locating an existing one on the host system.</para> 66 </listitem> 67 </varlistentry> 51 68 52 <varlistentry> 53 <term><parameter>--with-tclinclude=/tools/include</parameter></term> 54 <listitem><para>This explicitly tells Expect where to find Tcl's internal headers. 55 Using this option avoids conditions where <command>configure</command> fails because 56 it cannot automatically discover the location of Tcl's headers.</para></listitem> 57 </varlistentry> 69 <varlistentry> 70 <term><parameter>--with-tclinclude=/tools/include</parameter></term> 71 <listitem> 72 <para>This explicitly tells Expect where to find Tcl's internal 73 headers. Using this option avoids conditions where 74 <command>configure</command> fails because it cannot automatically 75 discover the location of Tcl's headers.</para> 76 </listitem> 77 </varlistentry> 58 78 59 <varlistentry> 60 <term><parameter>--with-x=no</parameter></term> 61 <listitem><para>This tells the configure script not to search for Tk 62 (the Tcl GUI component) or the X Window System libraries, both of 63 which may reside on the host system but will not exist in the temporary 64 environment.</para></listitem> 65 </varlistentry> 66 </variablelist> 79 <varlistentry> 80 <term><parameter>--with-x=no</parameter></term> 81 <listitem> 82 <para>This tells the configure script not to search for Tk (the 83 Tcl GUI component) or the X Window System libraries, both of which 84 may reside on the host system but will not exist in the temporary 85 environment.</para> 86 </listitem> 87 </varlistentry> 67 88 68 <para>Build the package:</para> 89 </variablelist> 90 91 <para>Build the package:</para> 69 92 70 93 <screen><userinput>make</userinput></screen> 71 94 72 <para>To test the results, issue: <userinput>make test</userinput>.73 Note that the Expect test suite is known to experience failures under74 certain host conditions that are not within our control. Therefore,75 test suite failures here are not surprising and are not considered76 critical.</para>95 <para>To test the results, issue: <userinput>make test</userinput>. 96 Note that the Expect test suite is known to experience failures under 97 certain host conditions that are not within our control. Therefore, 98 test suite failures here are not surprising and are not considered 99 critical.</para> 77 100 78 <para>Install the package:</para>101 <para>Install the package:</para> 79 102 80 103 <screen><userinput>make SCRIPTS="" install</userinput></screen> 81 104 82 <para>The meaning of the make parameter:</para> 105 <variablelist> 106 <title>The meaning of the make parameter:</title> 83 107 84 <variablelist>85 <varlistentry>86 <term><parameter>SCRIPTS=""</parameter></term>87 <listitem><para>This prevents installation of the supplementary expect88 scripts, which are not needed.</para></listitem>89 </varlistentry>90 </variablelist>108 <varlistentry> 109 <term><parameter>SCRIPTS=""</parameter></term> 110 <listitem> 111 <para>This prevents installation of the supplementary Expect 112 scripts, which are not needed.</para> 113 </listitem> 114 </varlistentry> 91 115 92 </sect2>116 </variablelist> 93 117 94 <sect2 id="contents-expect" role="content"><title>Contents of Expect</title>118 </sect2> 95 119 96 <segmentedlist> 97 <segtitle>Installed program</segtitle> 98 <segtitle>Installed library</segtitle> 99 <seglistitem><seg>expect</seg><seg>libexpect-&expect-lib-version;.a</seg></seglistitem> 100 </segmentedlist> 120 <sect2 id="contents-expect" role="content"> 121 <title>Contents of Expect</title> 101 122 102 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>103 <?dbfo list-presentation="list"?>104 <?dbhtml list-presentation="table"?>123 <segmentedlist> 124 <segtitle>Installed program</segtitle> 125 <segtitle>Installed library</segtitle> 105 126 106 <varlistentry id="expect"> 107 <term><command>expect</command></term> 108 <listitem> 109 <para>Communicates with other interactive 110 programs according to a script</para> 111 <indexterm zone="ch-tools-expect expect"><primary sortas="b-expect">expect</primary></indexterm> 112 </listitem> 113 </varlistentry> 127 <seglistitem> 128 <seg>expect</seg> 129 <seg>libexpect-&expect-lib-version;.a</seg> 130 </seglistitem> 131 </segmentedlist> 114 132 115 <varlistentry id="libexpect"> 116 <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term> 117 <listitem> 118 <para>Contains functions that allow Expect to be used as a Tcl extension or to 119 be used directly from C or C++ (without Tcl)</para> 120 <indexterm zone="ch-tools-expect libexpect"><primary 121 sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary></indexterm> 122 </listitem> 123 </varlistentry> 124 </variablelist> 133 <variablelist> 134 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 135 <?dbfo list-presentation="list"?> 136 <?dbhtml list-presentation="table"?> 125 137 126 </sect2> 138 <varlistentry id="expect"> 139 <term><command>expect</command></term> 140 <listitem> 141 <para>Communicates with other interactive programs according 142 to a script</para> 143 <indexterm zone="ch-tools-expect expect"> 144 <primary sortas="b-expect">expect</primary> 145 </indexterm> 146 </listitem> 147 </varlistentry> 148 149 <varlistentry id="libexpect"> 150 <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term> 151 <listitem> 152 <para>Contains functions that allow Expect to be used as a Tcl 153 extension or to be used directly from C or C++ (without Tcl)</para> 154 <indexterm zone="ch-tools-expect libexpect"> 155 <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary> 156 </indexterm> 157 </listitem> 158 </varlistentry> 159 160 </variablelist> 161 162 </sect2> 127 163 128 164 </sect1> 129
Note:
See TracChangeset
for help on using the changeset viewer.