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