aboutlfs.xml 1.4 KB

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