| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 | <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [  <!ENTITY % general-entities SYSTEM "../general.ent">  %general-entities;]><sect1 id="ch-system-introduction"><title>Introduction</title><?dbhtml filename="introduction.html"?><para>In this chapter, we enter the building site and startconstructing the LFS system in earnest. That is, we chroot into thetemporary mini Linux system, make a few final preparations, and thenbegin installing the packages.</para><para>The installation of this software is straightforward. Althoughin many cases the installation instructions could be made shorter andmore generic, we have opted to provide the full instructions for everypackage to minimize the possibilities for mistakes.  The key tolearning what makes a Linux system work is to know what each packageis used for and why the user (or the system) needs it.  For everyinstalled package, a summary of its contents is given, followed byconcise descriptions of each program and library the packageinstalled.</para><para>If using the compiler optimizations provided in this chapter,please review the optimization hint at <ulinkurl="&hints-root;optimization.txt"/>.  Compiler optimizations can makea program run slightly faster, but they may also cause compilationdifficulties and problems when running the program. If a packagerefuses to compile when using optimization, try to compile it withoutoptimization and see if that fixes the problem. Even if the packagedoes compile when using optimization, there is the risk it may havebeen compiled incorrectly because of the complex interactions betweenthe code and build tools.  Also note that the <option>-march</option>and <option>-mtune</option> options may cause problems with thetoolchain packages (Binutils, GCC and Glibc).  The small potentialgains achieved in using compiler optimizations are often outweighed bythe risks. First-time builders of LFS are encouraged to build withoutcustom optimizations.  The subsequent system will still run very fastand be stable at the same time.</para><para>The order that packages are installed in this chapter needs tobe strictly followed to ensure that no program accidentally acquires apath referring to <filename class="directory">/tools</filename>hard-wired into it. For the same reason, do not compile packages inparallel. Compiling in parallel may save time (especially on dual-CPUmachines), but it could result in a program containing a hard-wiredpath to <filename class="directory">/tools</filename>, which willcause the program to stop working when that directory isremoved.</para><para>Before the installation instructions, each installation pageprovides information about the package, including a concisedescription of what it contains, approximately how long it will taketo build, how much disk space is required during this buildingprocess, and any other packages needed to successfully build thepackage. Following the installation instructions, there is a list ofprograms and libraries (along with brief descriptions of these) thatthe package installs.</para><para>To keep track of which package installs particular files, a packagemanager can be used. For a general overview of different styles of packagemanagers, please refer to <ulinkurl="&blfs-root;view/svn/introduction/important.html"/>.For a package management method specifically geared towards LFS, we recommend <ulinkurl="&hints-root;more_control_and_pkg_man.txt"/>.</para><note><para>The remainder of this book is to be performed while logged in asuser <emphasis>root</emphasis> and no longer as user <emphasis>lfs</emphasis>.Also, double check that <envar>$LFS</envar> is set.</para></note></sect1>
 |