Introduction

In this chapter we enter the building site, and start constructing our LFS system in earnest. That is, we chroot into our temporary mini Linux system, create some auxiliary things, and then start installing all the packages, one by one.

The installation of all this software is pretty straightforward, and you will probably think it would be much shorter to give here the generic installation instructions and explain in full only the installation of those packages that require an alternate method. Although we agree with that, we nevertheless choose to give the full instructions for each and every package, simply to minimize the possibilities for mistakes.

If you plan to use compiler optimizations in this chapter, take a look at the optimization hint at http://hints.linuxfromscratch.org/hints/optimization.txt. Compiler optimizations can make a program run faster, but they may also cause compilation difficulties. If a package refuses to compile when using optimization, try to compile it without optimization and see if the problem goes away.

The order in which packages are installed in this chapter has to be strictly followed, to ensure that no program gets a path referring to /static hard-wired into it. For the same reason, do not compile packages in parallel. Compiling in parallel may save you some time (especially on dual-CPU machines), but it could result in a program containing a hard-wired path to /static, which will cause the program to stop working when the static directory is removed.