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

📄 perl.html

📁 Linux From Scratch的中文指导,学习LINUX很有用
💻 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=gb2312" />
    <title>
      5.32.&nbsp;Perl-5.8.6
    </title>
    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.68.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print" />
  </head>
  <body id="lfs" class="6.1">
    <div class="navheader">
      <div class="headertitles">
        <h4>
          Linux From Scratch - Version 6.1
        </h4>
        <h3>
          Chapter&nbsp;5.&nbsp;构建临时编译环境
        </h3>
      </div>
      <ul class="headerlinks">
        <li class="prev">
          <a accesskey="p" href="util-linux.html" title="Util-linux-2.12q">后退</a>
          <p>
            Util-linux-2.12q
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="stripping.html" title="Stripping">前进</a>
          <p>
            Stripping
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter05.html" title="Chapter&nbsp;5.&nbsp;构建临时编译环境">上一级</a>.
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>
        </li>
      </ul>
    </div>
    <div class="wrap" lang="zh_cn" xml:lang="zh_cn">
      <div class="titlepage">
        <h1 class="sect1">
          5.32. Perl-5.8.6
        </h1>
      </div>
      <div class="package" lang="zh_cn" xml:lang="zh_cn">
        <p>Perl 是 Practical Extraction and Report Language的缩写。Perl 将 C, sed, awk 和 sh 的最佳特性集于一身,是一种强大的编程语言。
        </p>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong><span class="segtitle">预计编译时间:</span></strong> <span class="seg">0.8 SBU</span>
            </div>
            <div class="seg">
              <strong><span class="segtitle">所需磁盘空间:</span></strong> <span class="seg">79.8 MB</span>
            </div>
          </div>
        </div>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong><span class="segtitle">安装依赖于:</span></strong> <span class="seg">Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed</span>
            </div>
          </div>
        </div>
      </div>
      <div class="installation" lang="zh_cn" xml:lang="zh_cn">
        <div class="titlepage">
          <h2 class="sect2">
            5.32.1. 安装 Perl
          </h2>
        </div>
        <p>首先应用下面的补丁,调整指向 C 库的硬连接路径:
        </p>
        <pre class="userinput"><kbd class="command">patch -Np1 -i ../perl-5.8.6-libc-1.patch</kbd></pre>
        <p>准备编译 Perl(请正确输入下面命令中的“IO Fcntl POSIX”——全是字母):
        </p>
        <pre class="userinput"><kbd class="command">./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl POSIX'</kbd></pre>
        <p>
          配置选项的含义:
        </p>
        <div class="variablelist">
          <dl>
            <dt>
              <span class="term"><em class="parameter"><tt>-Dstatic_ext='IO Fcntl POSIX'</tt></em></span>
            </dt>
            <dd>
              <p>这个选项让 Perl 编译静态扩展的最小集,下一章安装测试 Coreutils 软件包的时候需要用到。
              </p>
            </dd>
          </dl>
        </div>
        <p>仅编译必要的工具:
        </p>
        <pre class="userinput"><kbd class="command">make perl utilities</kbd></pre>
        <p>尽管 Perl 附带测试程序,但我们不推荐在这里运行。由于只编译了一部分 Perl,现在运行 <strong class="userinput"><tt>make  test</tt></strong> 会编译 Perl 的其余部分,而这里我们并不需要它们。如果想的话,可以到下一章再运行测试程序。
        </p>
        <p>安装这些工具和库:
        </p>
        <pre class="userinput"><kbd class="command">cp perl pod/pod2man /tools/bin
mkdir -p /tools/lib/perl5/5.8.6
cp -R lib/* /tools/lib/perl5/5.8.6</kbd></pre>
      </div>
      <div class="content" lang="zh_cn" xml:lang="zh_cn">
        <p>关于这个软件包的详细资料位于 <a href="../chapter06/perl.html#contents-perl" title="6.33.2.&nbsp;Contents of Perl">Section&nbsp;6.33.2, &ldquo;Contents of Perl.&rdquo;</a>
        </p>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="util-linux.html" title="Util-linux-2.12q">后退</a>
          <p>
            Util-linux-2.12q
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="stripping.html" title="Stripping">前进</a>
          <p>
            Stripping
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter05.html" title="Chapter&nbsp;5.&nbsp;构建临时编译环境">上一级</a>.
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>.
        </li>
      </ul>
    </div>
  </body>
</html>

⌨️ 快捷键说明

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