| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 | 
							- <?xml version="1.0" encoding="UTF-8"?>
 
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 
-   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 
-   <!ENTITY % general-entities SYSTEM "../general.ent">
 
-   %general-entities;
 
- ]>
 
- <sect1 id="ch-tools-creatingtoolsdir">
 
-   <?dbhtml filename="creatingtoolsdir.html"?>
 
-   <title>创建 $LFS/tools 目录</title>
 
-   <!--para>All programs compiled in <xref linkend="chapter-temporary-tools"/>
 
-   will be installed under <filename class="directory">$LFS/tools</filename>
 
-   to keep them separate from the programs compiled in <xref
 
-   linkend="chapter-building-system"/>. The programs compiled here are
 
-   temporary tools and will not be a part of the final LFS system. By keeping
 
-   these programs in a separate directory, they can easily be discarded later
 
-   after their use. This also prevents these programs from ending up in the
 
-   host production directories (easy to do by accident in <xref
 
-   linkend="chapter-temporary-tools"/>).</para-->
 
-   <para><xref linkend="chapter-temporary-tools"/>
 
- 	  中编译的所有程序都会被安装在
 
- 	  <filename class="directory">$LFS/tools</filename>
 
- 	  目录中,以便和 <xref linkend="chapter-building-system"/>
 
- 	  中编译的程序分离开来。因为前者是临时工具,
 
- 	  并不是最终的 LFS 系统的一部分,将它们保存在单独的目录树中,
 
- 	  就可以在使用完后容易地删除。
 
- 	  另外,这也可以防止它们被意外地安装在宿主环境中 (这种意外在
 
- 	  <xref linkend="chapter-temporary-tools"/> 中容易发生)。</para>
 
-   <!--para>Create the required directory by running the following as
 
-   <systemitem class="username">root</systemitem>:</para-->
 
-   <para>以 <systemitem class="username">root</systemitem> 身份执行以下命令,
 
- 	  创建这个目录:</para>
 
- <screen><userinput>mkdir -v $LFS/tools</userinput></screen>
 
-   <!--para>The next step is to create a <filename class="symlink">/tools</filename>
 
-   symlink on the host system. This will point to the newly-created directory on
 
-   the LFS partition. Run this command as <systemitem
 
-   class="username">root</systemitem> as well:</para-->
 
-   <para>下一步是在宿主系统中创建一个
 
- 	  <filename class="symlink">/tools</filename> 符号链接。
 
- 	  这个链接指向刚刚创建的,在 LFS 分区中的目录。以
 
- 	  <systemitem class="username">root</systemitem> 身份执行以下命令:
 
-   </para>
 
- <screen><userinput>ln -sv $LFS/tools /</userinput></screen>
 
-   <note>
 
-     <!--para>The above command is correct. The <command>ln</command> command
 
-     has a few syntactic variations, so be sure to check
 
-     <command>info coreutils ln</command> and <filename>ln(1)</filename>
 
-     before reporting what you may think is an error.</para-->
 
-     <para>这个命令是正确的,<command>ln</command>命令的语法有一些变种。
 
- 		请先阅读 <command>info coreutils ln</command> 和
 
- 		<filename>ln(1)</filename>,而不是直接发邮件断言这是一个错误。
 
- 	</para>
 
-   </note>
 
-   <!--para>The created symlink enables the toolchain to be compiled so that it
 
-   always refers to <filename class="directory">/tools</filename>, meaning
 
-   that the compiler, assembler, and linker will work both in Chapter 5
 
-   (when we are still using some tools from the host) and in the next (when
 
-   we are <quote>chrooted</quote> to the LFS partition).</para-->
 
-   <para>这个符号链接使得临时工具链总是可以通过
 
- 	  <filename class="directory">/tools</filename> 这个路径访问,
 
- 	  这样,无论是在第 5 章(我们仍然需要使用宿主的一些工具)和第 6 章
 
- 	  (我们已经 <quote>chroot</quote> 到 LFS 分区)中,它们都能正常工作。
 
-   </para>
 
- </sect1>
 
 
  |