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

📄 readline.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>      10.16.&nbsp;Readline-5.1    </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-MIPS">    <div class="navheader">      <div class="headertitles">        <h4>          Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS        </h4>        <h3>          Chapter&nbsp;10.&nbsp;Installing Basic System Software        </h3>      </div>      <ul class="headerlinks">        <li class="prev">          <a accesskey="p" href="ncurses.html" title="Ncurses-5.5">Prev</a>          <p>            Ncurses-5.5          </p>        </li>        <li class="next">          <a accesskey="n" href="vim.html" title="Vim-6.4">Next</a>          <p>            Vim-6.4          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS">          Home</a>        </li>      </ul>    </div>    <div class="wrap" lang="en" xml:lang="en">      <div class="titlepage">        <h1 class="sect1">          10.16. Readline-5.1        </h1>      </div>      <div class="package" lang="en" xml:lang="en">        <p>          The Readline package is a set of libraries that offers command-line          editing and history capabilities.        </p>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installation depends              on:</span></strong> <span class="seg">Binutils, Coreutils,              Diffutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, and              Sed</span>            </div>          </div>        </div>      </div>      <div class="installation" lang="en" xml:lang="en">        <div class="titlepage">          <h2 class="sect2">            10.16.1. Installation of Readline          </h2>        </div>        <p>          The following patch contains updates from the maintainer. The          maintainer of Readline only releases these patches to fix serious          issues.        </p>        <pre class="userinput"><kbd class="command">patch -Np1 -i ../readline-5.1-fixes-3.patch</kbd></pre>        <p>          Prepare Readline for compilation:        </p>        <pre class="userinput"><kbd class="command">./configure --prefix=/usr --libdir=/lib</kbd></pre>        <p>          Compile the package:        </p>        <pre class="userinput"><kbd class="command">make SHLIB_XLDFLAGS=-lncurses</kbd></pre>        <div class="variablelist">          <p class="title">            <b>The meaning of the make option:</b>          </p>          <dl>            <dt>              <span class="term"><em class=              "parameter"><tt>SHLIB_XLDFLAGS=-lncurses</tt></em></span>            </dt>            <dd>              <p>                This option forces Readline to link against the <tt class=                "filename">libncurses</tt> library.              </p>            </dd>          </dl>        </div>        <p>          This package does not come with a test suite.        </p>        <p>          Install the package:        </p>        <pre class="userinput"><kbd class="command">make install</kbd></pre>        <p>          Give Readline's dynamic libraries more appropriate permissions:        </p>        <pre class="userinput"><kbd class="command">chmod -v 755 /lib/lib{readline,history}.so*</kbd></pre>        <p>          Now move the static libraries to a more appropriate location:        </p>        <pre class="userinput"><kbd class="command">mv -v /lib/lib{readline,history}.a /usr/lib</kbd></pre>        <p>          Next, remove the <tt class="filename">.so</tt> files in <tt class=          "filename">/lib</tt> and relink them into <tt class=          "filename">/usr/lib</tt>.        </p>        <pre class="userinput"><kbd class="command">rm -v /lib/lib{readline,history}.soln -svf ../../lib/libreadline.so.5 /usr/lib/libreadline.soln -svf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</kbd></pre>      </div>      <div class="content" lang="en" xml:lang="en">        <div class="titlepage">          <a id="contents-readline" name="contents-readline"></a>          <h2 class="sect2">            10.16.2. Contents of Readline          </h2>        </div>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installed              libraries:</span></strong> <span class="seg">libhistory.[a,so],              and libreadline.[a,so]</span>            </div>          </div>        </div>        <div class="variablelist">          <h3>            <a id="id3669844" name="id3669844"></a>Short Descriptions          </h3>          <table border="0">            <col align="left" valign="top" />            <tbody>              <tr>                <td>                  <a id="libhistory" name="libhistory"></a><span class=                  "term"><tt class="filename">libhistory</tt></span>                </td>                <td>                  <p>                    Provides a consistent user interface for recalling lines                    of history                  </p>                </td>              </tr>              <tr>                <td>                  <a id="libreadline" name="libreadline"></a><span class=                  "term"><tt class="filename">libreadline</tt></span>                </td>                <td>                  <p>                    Aids in the consistency of user interface across discrete                    programs that need to provide a command line interface                  </p>                </td>              </tr>            </tbody>          </table>        </div>      </div>    </div>    <div class="navfooter">      <ul>        <li class="prev">          <a accesskey="p" href="ncurses.html" title="Ncurses-5.5">Prev</a>          <p>            Ncurses-5.5          </p>        </li>        <li class="next">          <a accesskey="n" href="vim.html" title="Vim-6.4">Next</a>          <p>            Vim-6.4          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS">          Home</a>.        </li>      </ul>    </div>  </body></html>

⌨️ 快捷键说明

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