|
@@ -8,14 +8,14 @@
|
|
<sect1 id="ch-system-revisedchroot">
|
|
<sect1 id="ch-system-revisedchroot">
|
|
<?dbhtml filename="revisedchroot.html"?>
|
|
<?dbhtml filename="revisedchroot.html"?>
|
|
|
|
|
|
- <title>Cleaning Up</title>
|
|
|
|
|
|
+ <title>清理系统</title>
|
|
|
|
|
|
- <para>Finally, clean up some extra files left around from running tests:</para>
|
|
|
|
|
|
+ <para>最后,清理在执行测试的过程中遗留的一些文件:</para>
|
|
|
|
|
|
<screen><userinput>rm -rf /tmp/*</userinput></screen>
|
|
<screen><userinput>rm -rf /tmp/*</userinput></screen>
|
|
|
|
|
|
- <para>From now on, when reentering the chroot environment after
|
|
|
|
- exiting, use the following modified chroot command:</para>
|
|
|
|
|
|
+ <para>从现在起,在退出并重新进入 chroot 环境时,
|
|
|
|
+ 要使用下面的修改过的 chroot 命令:</para>
|
|
|
|
|
|
<screen role="nodump"><userinput>chroot "$LFS" /usr/bin/env -i \
|
|
<screen role="nodump"><userinput>chroot "$LFS" /usr/bin/env -i \
|
|
HOME=/root TERM="$TERM" \
|
|
HOME=/root TERM="$TERM" \
|
|
@@ -23,29 +23,34 @@
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
|
/bin/bash --login</userinput></screen>
|
|
/bin/bash --login</userinput></screen>
|
|
|
|
|
|
- <para>The reason for this is that the programs in <filename
|
|
|
|
- class="directory">/tools</filename> are no longer needed. Since they are no
|
|
|
|
- longer needed you can delete the <filename class="directory">/tools</filename>
|
|
|
|
- directory if so desired.</para>
|
|
|
|
|
|
+ <para>这是由于 <filename class="directory">/tools</filename>
|
|
|
|
+ 中的程序不再必要。因此,如果您希望的话,可以删除
|
|
|
|
+ <filename class="directory">/tools</filename> 目录。</para>
|
|
|
|
|
|
<note>
|
|
<note>
|
|
- <para>Removing <filename class="directory">/tools</filename> will also
|
|
|
|
- remove the temporary copies of Tcl, Expect, and DejaGNU which were used
|
|
|
|
- for running the toolchain tests. If you need these programs later on,
|
|
|
|
- they will need to be recompiled and re-installed. The BLFS book has
|
|
|
|
- instructions for this (see <ulink url="&blfs-root;"/>).</para>
|
|
|
|
|
|
+ <para>删除 <filename class="directory">/tools</filename> 也会移除
|
|
|
|
+ Tcl、Expect 和 DejaGNU 的临时拷贝,它们之前被用于进行工具链测试。
|
|
|
|
+ 如果您之后仍然需要它们,必须重新编译和安装这些软件包。
|
|
|
|
+ BLFS 手册包含了安装它们的说明 (见 <ulink url="&blfs-root;"/>)。
|
|
|
|
+ </para>
|
|
</note>
|
|
</note>
|
|
|
|
|
|
- <para>If the virtual kernel file systems have been unmounted, either manually
|
|
|
|
|
|
+ <!--para>If the virtual kernel file systems have been unmounted, either manually
|
|
or through a reboot, ensure that the virtual kernel file systems are mounted
|
|
or through a reboot, ensure that the virtual kernel file systems are mounted
|
|
- when reentering the chroot. This process was explained in <xref
|
|
|
|
- linkend="ch-system-bindmount"/> and <xref
|
|
|
|
- linkend="ch-system-kernfsmount"/>.</para>
|
|
|
|
|
|
+ when reentering the chroot. This process was explained in <xref -->
|
|
|
|
+ <para>如果解挂了虚拟内核文件系统,
|
|
|
|
+ 必须通过手动或重启系统的方式重新挂载它们,保证在进入 chroot
|
|
|
|
+ 时它们已经挂载好,正如 <xref linkend="ch-system-bindmount"/> 和
|
|
|
|
+ <xref linkend="ch-system-kernfsmount"/> 解释的那样。</para>
|
|
|
|
|
|
- <para>There were several static libraries that were not suppressed earlier
|
|
|
|
|
|
+ <!--para>There were several static libraries that were not suppressed earlier
|
|
in the chapter in order to satisfy the regression tests in several packages. These
|
|
in the chapter in order to satisfy the regression tests in several packages. These
|
|
libraries are from binutils, bzip2, e2fsprogs, flex, libtool, and zlib. If desired,
|
|
libraries are from binutils, bzip2, e2fsprogs, flex, libtool, and zlib. If desired,
|
|
- remove them now:</para>
|
|
|
|
|
|
+ remove them now:</para-->
|
|
|
|
+ <para>在本章的前几节中,有几个静态库的安装没有被禁止,
|
|
|
|
+ 目的是满足一些软件包的退化测试需要。这些库来自于 binutils、bzip2、
|
|
|
|
+ e2fsprogs、flex、libtool 和 zlib。如果您希望的话,可以现在删除它们:
|
|
|
|
+ </para>
|
|
|
|
|
|
<screen><userinput>rm -f /usr/lib/lib{bfd,opcodes}.a
|
|
<screen><userinput>rm -f /usr/lib/lib{bfd,opcodes}.a
|
|
rm -f /usr/lib/libbz2.a
|
|
rm -f /usr/lib/libbz2.a
|
|
@@ -55,15 +60,15 @@ rm -f /usr/lib/libfl.a
|
|
rm -f /usr/lib/libfl_pic.a
|
|
rm -f /usr/lib/libfl_pic.a
|
|
rm -f /usr/lib/libz.a</userinput></screen>
|
|
rm -f /usr/lib/libz.a</userinput></screen>
|
|
|
|
|
|
- <para>There are also several files installed in the /usr/lib directory with a
|
|
|
|
- file name extention of .la. These are "libtool archive" files and generally
|
|
|
|
- unneeded on a linux system. None of these are necessary at this point. To
|
|
|
|
- remove them, run:</para>
|
|
|
|
|
|
+ <para>/usr/lib 目录中还有一些扩展名为 .la 的文件。
|
|
|
|
+ 它们是 <quote>libtool 档案</quote> 文件,
|
|
|
|
+ 在 Linux 系统上一般是不必要的。截至目前,
|
|
|
|
+ 已经安装的 .la 文件中没有一个是必要的。执行下列命令删除它们:</para>
|
|
|
|
|
|
<screen><userinput>find /usr/lib -name \*.la -delete</userinput></screen>
|
|
<screen><userinput>find /usr/lib -name \*.la -delete</userinput></screen>
|
|
|
|
|
|
- <para>For more information about libtool archive files, see the <ulink
|
|
|
|
- url="&blfs-book;/introduction/la-files.html">BLFS section "About Libtool
|
|
|
|
- Archive (.la) files"</ulink>.</para>
|
|
|
|
|
|
+ <para>如果希望了解更多关于 libtool 档案文件的信息,参阅 <ulink
|
|
|
|
+ url="&blfs-book;/introduction/la-files.html">BLFS 章节 "About Libtool
|
|
|
|
+ Archive (.la) files"</ulink>。</para>
|
|
|
|
|
|
</sect1>
|
|
</sect1>
|