source: chapter06/introduction.xml@ 5cc05d8

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 5cc05d8 was 5cc05d8, checked in by Archaic <archaic@…>, 19 years ago

Added text to check for LFS var being set.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6366 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/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
10<para>In this chapter, we enter the building site and start
11constructing the LFS system in earnest. That is, we chroot into the
12temporary mini Linux system, make a few final preparations, and then
13begin installing the packages.</para>
14
15<para>The installation of this software is straightforward. Although
16in many cases the installation instructions could be made shorter and
17more generic, we have opted to provide the full instructions for every
18package to minimize the possibilities for mistakes. The key to
19learning what makes a Linux system work is to know what each package
20is used for and why the user (or the system) needs it. For every
21installed package, a summary of its contents is given, followed by
22concise descriptions of each program and library the package
23installed.</para>
24
25<para>If using the compiler optimizations provided in this chapter,
26please review the optimization hint at <ulink
27url="&hints-root;optimization.txt"/>. Compiler optimizations can make
28a program run slightly faster, but they may also cause compilation
29difficulties and problems when running the program. If a package
30refuses to compile when using optimization, try to compile it without
31optimization and see if that fixes the problem. Even if the package
32does compile when using optimization, there is the risk it may have
33been compiled incorrectly because of the complex interactions between
34the code and build tools. The small potential gains achieved in using
35compiler optimizations are often outweighed by the risks. First-time
36builders of LFS are encouraged to build without custom optimizations.
37The subsequent system will still run very fast and be stable at the
38same time.</para>
39
40<para>The order that packages are installed in this chapter needs to
41be strictly followed to ensure that no program accidentally acquires a
42path referring to <filename class="directory">/tools</filename>
43hard-wired into it. For the same reason, do not compile packages in
44parallel. Compiling in parallel may save time (especially on dual-CPU
45machines), but it could result in a program containing a hard-wired
46path to <filename class="directory">/tools</filename>, which will
47cause the program to stop working when that directory is
48removed.</para>
49
50<para>Before the installation instructions, each installation page
51provides information about the package, including a concise
52description of what it contains, approximately how long it will take
53to build, how much disk space is required during this building
54process, and any other packages needed to successfully build the
55package. Following the installation instructions, there is a list of
56programs and libraries (along with brief descriptions of these) that
57the package installs.</para>
58
59<para>To keep track of which package installs particular files, a package
60manager can be used. For a general overview of different styles of package
61managers, please refer to <ulink
62url="&blfs-root;view/svn/introduction/important.html"/>.
63For a package management method specifically geared towards LFS, we recommend <ulink
64url="&hints-root;more_control_and_pkg_man.txt"/>.</para>
65
66<note><para>The remainder of this book is to be performed while logged in as
67user <emphasis>root</emphasis> and no longer as user <emphasis>lfs</emphasis>.
68Also, double check that <envar>$LFS</envar> is set.</para></note>
69
70</sect1>
71
Note: See TracBrowser for help on using the repository browser.