📄 chapter.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> Chapter 4. Final Preparations </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-x86_64-Pure64"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86_64-Pure64 </h4> <h3> Part II. Preparing for the Build </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="../materials/patches-x86_64.html" title= "Additional Patches for x86_64">Prev</a> <p> Additional Patches for x86_64 </p> </li> <li class="next"> <a accesskey="n" href="creatingtoolsdir.html" title= "Creating the $LFS/tools Directory">Next</a> <p> Creating the $LFS/tools Directory </p> </li> <li class="up"> <a accesskey="u" href="../part2.html" title= "Part II. Preparing for the Build">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86_64-Pure64"> Home</a> </li> </ul> </div> <div class="chapter" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="chapter"> 4. Final Preparations </h1> </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <a id="ch-final-preps-aboutlfs" name="ch-final-preps-aboutlfs"></a> <h2 class="sect1"> 4.1. About $LFS </h2> </div> <p> Throughout this book, the environment variable <tt class= "envar">LFS</tt> will be used several times. It is paramount that this variable is always defined. It should be set to the mount point chosen for the LFS partition. Check that the <tt class= "envar">LFS</tt> variable is set up properly with: </p> <pre class="userinput"><kbd class="command">echo $LFS</kbd></pre> <p> Make sure the output shows the path to the LFS partition's mount point, which is <tt class="filename">/mnt/lfs</tt> if the provided example was followed. If the output is incorrect, the variable can be set with: </p> <pre class="userinput"><kbd class="command">export LFS=/mnt/lfs</kbd></pre> <p> Having this variable set is beneficial in that commands such as <span><strong class="command">install -d $LFS/tools</strong></span> can be typed literally. The shell will automatically replace “<span class="quote">$LFS</span>” with “<span class="quote">/mnt/lfs</span>” (or whatever the variable was set to) when it processes the command line. </p> <p> If you haven't created the <tt class="filename">$LFS</tt> directory, do so at this time by issuing the following commands: </p> <pre class="userinput"><kbd class="command">install -dv $LFS</kbd></pre> <p> Do not forget to check that <tt class="envar">$LFS</tt> is set whenever you leave and reenter the current working environment (as when doing a “<span class="quote">su</span>” to <tt class="systemitem">root</tt> or another user). </p> </div> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="../materials/patches-x86_64.html" title= "Additional Patches for x86_64">Prev</a> <p> Additional Patches for x86_64 </p> </li> <li class="next"> <a accesskey="n" href="creatingtoolsdir.html" title= "Creating the $LFS/tools Directory">Next</a> <p> Creating the $LFS/tools Directory </p> </li> <li class="up"> <a accesskey="u" href="../part2.html" title= "Part II. Preparing for the Build">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86_64-Pure64"> Home</a>. </li> </ul> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -