⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 expect.html

📁 CLFS(Cross-Compiled Linux From Scratch)的文档 Version CLFS-SVN-20060417
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">  <head>    <meta http-equiv="Content-Type" content=    "application/xhtml+xml; charset=iso-8859-1" />    <title>      9.3.&nbsp;Expect-5.43.0    </title>    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />    <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" />    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=    "text/css" media="print" />  </head>  <body id="lfs" class="CLFS-SVN-20060417-x86">    <div class="navheader">      <div class="headertitles">        <h4>          Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86        </h4>        <h3>          Chapter&nbsp;9.&nbsp;Constructing Testsuite Tools        </h3>      </div>      <ul class="headerlinks">        <li class="prev">          <a accesskey="p" href="tcl.html" title="Tcl-8.4.12">Prev</a>          <p>            Tcl-8.4.12          </p>        </li>        <li class="next">          <a accesskey="n" href="dejagnu.html" title="DejaGNU-1.4.4">Next</a>          <p>            DejaGNU-1.4.4          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;9.&nbsp;Constructing Testsuite Tools">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86">          Home</a>        </li>      </ul>    </div>    <div class="wrap" lang="en" xml:lang="en">      <div class="titlepage">        <h1 class="sect1">          9.3. Expect-5.43.0        </h1>      </div>      <div class="package" lang="en" xml:lang="en">        <p>          The Expect package contains a program for carrying out scripted          dialogues with other interactive programs.        </p>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installation depends              on:</span></strong> <span class="seg">Bash, Binutils,              Coreutils, Diffutils, GCC, Glibc, Grep, Make, Patch, Sed, and              Tcl</span>            </div>          </div>        </div>      </div>      <div class="installation" lang="en" xml:lang="en">        <div class="titlepage">          <h2 class="sect2">            9.3.1. Installation of Expect          </h2>        </div>        <p>          First, fix a bug that can result in false failures during the GCC          test suite run:        </p>        <pre class="userinput"><kbd class="command">patch -Np1 -i ../expect-5.43.0-spawn-2.patch</kbd></pre>        <p>          Now prepare Expect for compilation:        </p>        <pre class="userinput"><kbd class="command">./configure --prefix=/tools --with-tcl=/tools/lib \   --with-tclinclude=/tools/include</kbd></pre>        <div class="variablelist">          <p class="title">            <b>The meaning of the configure options:</b>          </p>          <dl>            <dt>              <span class="term"><em class=              "parameter"><tt>--with-tcl=/tools/lib</tt></em></span>            </dt>            <dd>              <p>                This ensures that the configure script finds the Tcl                installation in the temporary testsuite-tools location.              </p>            </dd>            <dt>              <span class="term"><em class=              "parameter"><tt>--with-tclinclude=/tools/include</tt></em></span>            </dt>            <dd>              <p>                This explicitly tells Expect where to find Tcl's internal                headers. Using this option avoids conditions where                <span><strong class="command">configure</strong></span> fails                because it cannot automatically discover the location of the                Tcl source directory.              </p>            </dd>          </dl>        </div>        <p>          Build the package:        </p>        <pre class="userinput"><kbd class="command">make</kbd></pre>        <p>          Install the package:        </p>        <pre class="userinput"><kbd class="command">make SCRIPTS="" install</kbd></pre>        <div class="variablelist">          <p class="title">            <b>The meaning of the make parameter:</b>          </p>          <dl>            <dt>              <span class="term"><em class=              "parameter"><tt>SCRIPTS=""</tt></em></span>            </dt>            <dd>              <p>                This prevents installation of the supplementary expect                scripts, which are not needed.              </p>            </dd>          </dl>        </div>      </div>      <div class="content" lang="en" xml:lang="en">        <div class="titlepage">          <a id="contents-expect" name="contents-expect"></a>          <h2 class="sect2">            9.3.2. Contents of Expect          </h2>        </div>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installed              program:</span></strong> <span class="seg">expect</span>            </div>            <div class="seg">              <strong><span class="segtitle">Installed              library:</span></strong> <span class=              "seg">libexpect-5.43.a</span>            </div>          </div>        </div>        <div class="variablelist">          <h3>            <a id="id3647294" name="id3647294"></a>Short Descriptions          </h3>          <table border="0">            <col align="left" valign="top" />            <tbody>              <tr>                <td>                  <a id="expect" name="expect"></a><span class=                  "term"><span><strong class=                  "command">expect</strong></span></span>                </td>                <td>                  <p>                    Communicates with other interactive programs according to                    a script                  </p>                </td>              </tr>              <tr>                <td>                  <a id="libexpect" name="libexpect"></a><span class=                  "term"><tt class="filename">libexpect-5.43.a</tt></span>                </td>                <td>                  <p>                    Contains functions that allow Expect to be used as a Tcl                    extension or to be used directly from C or C++ (without                    Tcl)                  </p>                </td>              </tr>            </tbody>          </table>        </div>      </div>    </div>    <div class="navfooter">      <ul>        <li class="prev">          <a accesskey="p" href="tcl.html" title="Tcl-8.4.12">Prev</a>          <p>            Tcl-8.4.12          </p>        </li>        <li class="next">          <a accesskey="n" href="dejagnu.html" title="DejaGNU-1.4.4">Next</a>          <p>            DejaGNU-1.4.4          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;9.&nbsp;Constructing Testsuite Tools">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86">          Home</a>.        </li>      </ul>    </div>  </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -