aboutlfs.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <sect1 id="ch02-aboutlfs">
  2. <title>About $LFS</title>
  3. <?dbhtml filename="aboutlfs.html" dir="chapter02"?>
  4. <para>Please read the following paragraphs carefully. Throughout this book the
  5. variable LFS will be used frequently. $LFS must at all times be replaced with
  6. the directory where the partition that contains the LFS system is mounted. How
  7. to create and where to mount the partition will be explained in full detail in
  8. Chapter 4. For the moment let's assume that the LFS partition is mounted on
  9. <filename>/mnt/lfs</filename>.</para>
  10. <para>When you are told to run a command like
  11. <userinput>./configure --prefix=$LFS/tools</userinput>, you actually have to
  12. execute <userinput>./configure --prefix=/mnt/lfs/tools</userinput>.</para>
  13. <para>It's important that this is done no matter where it is read; be it in
  14. commands entered in a shell, or in a file edited or created.</para>
  15. <para>A possible solution is to set the environment variable LFS.
  16. This way $LFS can be entered literally instead of replacing it with
  17. /mnt/lfs. This is accomplished by running: </para>
  18. <para><screen><userinput>export LFS=/mnt/lfs</userinput></screen></para>
  19. <para>Now, if you are told to run a command such as
  20. <userinput>./configure --prefix=$LFS/tools</userinput>, then you may type it
  21. literally. Your shell will replace "$LFS" with "/mnt/lfs" when it processes
  22. the command line (that is, when you hit Enter after having typed the
  23. command).</para>
  24. </sect1>