introduction.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-introduction">
  7. <title>Introduction</title>
  8. <?dbhtml filename="introduction.html"?>
  9. <para>In this chapter we enter the building site, and start
  10. constructing our LFS system in earnest. That is, we chroot into
  11. our temporary mini Linux system, create some auxiliary things,
  12. and then start installing all the packages, one by one.</para>
  13. <para>The installation of all this software is pretty straightforward,
  14. and you will probably think it would be much shorter to give here
  15. the generic installation instructions and explain in full only the
  16. installation of those packages that require an alternate method.
  17. Although we agree with that, we nevertheless choose to give the
  18. full instructions for each and every package, simply to minimize
  19. the possibilities for mistakes.</para>
  20. <para>The key to learning what makes a Linux system work is to know
  21. what each package is used for and why the user (or the system) needs it.
  22. For this purpose for every installed package a summary of its content is
  23. given followed by concise descriptions of each program and library it
  24. installed.</para>
  25. <para>If you plan to use compiler optimizations in this chapter, take a look at
  26. the optimization hint at <ulink url="&hints-root;optimization.txt"/>. Compiler
  27. optimizations can make a program run slightly faster, but they may also cause
  28. compilation difficulties and even problems when running the program. If a
  29. package refuses to compile when using optimization, try to compile it without
  30. optimization and see if the problem goes away. Even if the package does compile
  31. when using optimization, there is the risk it may have been compiled incorrectly
  32. due to complex interactions between the code and build tools. In short, the
  33. small potential gains achieved in using compiler optimization are generally
  34. outweighed by the risk. First time builders of LFS are encouraged to build
  35. without custom optimizations. Your system will still be very fast and very
  36. stable at the same time.</para>
  37. <para>The order in which packages are installed in this chapter has
  38. to be strictly followed, to ensure that no program gets a path referring
  39. to <filename class="directory">/tools</filename> hard-wired into it.
  40. For the same reason, <emphasis>do not </emphasis> compile packages
  41. in parallel. Compiling in parallel may save you some time (especially on
  42. dual-CPU machines), but it could result in a program containing a
  43. hard-wired path to <filename class="directory">/tools</filename>,
  44. which will cause the program to stop working when that directory
  45. is removed.</para>
  46. <para>Before the installation instructions each installation page gives some
  47. information about the package: a concise description of what it contains,
  48. approximately how long it will take to build it, how much disk space it needs
  49. during this building process, and which other packages it
  50. needs in order to be built successfully. After the installation instructions
  51. follows a list of programs and libraries that the package installs, together
  52. with a series of short descriptions of these.</para>
  53. <para>If you wish to keep track of which package installs what files, you may
  54. want to use a package manager. For a general overview of package managers have
  55. a look at <ulink url="&blfs-root;view/cvs/introduction/pkgmgt.html"/>. And for
  56. a package management method specifically geared towards LFS see
  57. <ulink url="&hints-root;more_control_and_pkg_man.txt"/>.</para>
  58. </sect1>