📄 creatingtoolsdir.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> 4.2. Creating the $LFS/tools Directory </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 4. Final Preparations </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="chapter.html" title= "Final Preparations">Prev</a> <p> Final Preparations </p> </li> <li class="next"> <a accesskey="n" href="creatingcrossdir.html" title= "Creating the $LFS/cross-tools Directory">Next</a> <p> Creating the $LFS/cross-tools Directory </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 4. Final Preparations">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="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 4.2. Creating the $LFS/tools Directory </h1> </div> <p> All programs compiled in <a href= "../temp-system/chapter.html">Constructing a Temporary System</a> will be installed under <tt class="filename">$LFS/tools</tt> to keep them separate from the programs compiled in <a href= "../final-system/chapter.html">Installing Basic System Software</a>. 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 <a href= "../temp-system/chapter.html">Constructing a Temporary System</a>). </p> <p> Create the required directory by running the following as <tt class= "systemitem">root</tt>: </p> <pre class="userinput"><kbd class="command">install -dv $LFS/tools</kbd></pre> <p> The next step is to create a <tt class="filename">/tools</tt> symlink on the host system. This will point to the newly-created directory on the LFS partition. Run this command as <tt class= "systemitem">root</tt> as well: </p> <pre class="userinput"><kbd class="command">ln -sv $LFS/tools /</kbd></pre> <div class="note"> <div class="admonhead"> <img alt="[Note]" src="../images/note.png" /> <h3 class="admontitle"> Note </h3> </div> <div class="admonbody"> <p> The above command is correct. The <span><strong class= "command">ln</strong></span> command has a few syntactic variations, so be sure to check <span><strong class= "command">info coreutils ln</strong></span> and <tt class= "filename">ln(1)</tt> before reporting what you may think is an error. </p> </div> </div> <p> The created symlink enables the toolchain to be compiled so that it always refers to <tt class="filename">/tools</tt>, meaning that the compiler, assembler, and linker will work. This will provide a common place for our temporary tools system. </p> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="chapter.html" title= "Final Preparations">Prev</a> <p> Final Preparations </p> </li> <li class="next"> <a accesskey="n" href="creatingcrossdir.html" title= "Creating the $LFS/cross-tools Directory">Next</a> <p> Creating the $LFS/cross-tools Directory </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 4. Final Preparations">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 + -