source: chapter05/introduction.xml@ d55da0a

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.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 d55da0a was b06ca36, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Updated book sources to use DocBook-XML DTD 4.5

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

  • Property mode set to 100644
File size: 3.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-tools-introduction">
9 <?dbhtml filename="introduction.html"?>
10
11 <title>Introduction</title>
12
13 <para>This chapter shows how to compile and install a minimal Linux system.
14 This system will contain just enough tools to start constructing the final
15 LFS system in <xref linkend="chapter-building-system"/> and allow a working
16 environment with more user convenience than a minimum environment would.</para>
17
18 <para>There are two steps in building this minimal system. The first step
19 is to build a new and host-independent toolchain (compiler, assembler,
20 linker, libraries, and a few useful utilities). The second step uses this
21 toolchain to build the other essential tools.</para>
22
23 <para>The files compiled in this chapter will be installed under the
24 <filename class="directory">$LFS/tools</filename> directory to keep them
25 separate from the files installed in the next chapter and the host
26 production directories. Since the packages compiled here are temporary,
27 we do not want them to pollute the soon-to-be LFS system.</para>
28
29 <important>
30 <para>Before issuing the build instructions for a package, the package
31 should be unpacked as user <systemitem class="username">lfs</systemitem>,
32 and a <command>cd</command> into the created directory should be performed.
33 The build instructions assume that the <command>bash</command> shell is
34 in use.</para>
35 </important>
36
37 <para>Several of the packages are patched before compilation, but only when
38 the patch is needed to circumvent a problem. A patch is often needed in both
39 this and the next chapter, but sometimes in only one or the other. Therefore,
40 do not be concerned if instructions for a downloaded patch seem to be missing.
41 Warning messages about <emphasis>offset</emphasis> or <emphasis>fuzz</emphasis>
42 may also be encountered when applying a patch. Do not worry about these
43 warnings, as the patch was still successfully applied.</para>
44
45 <para>During the compilation of most packages, there will be several warnings
46 that scroll by on the screen. These are normal and can safely be ignored.
47 These warnings are as they appear&mdash;warnings about deprecated, but not
48 invalid, use of the C or C++ syntax. C standards change fairly often, and
49 some packages still use the older standard. This is not a problem, but does
50 prompt the warning.</para>
51
52 <important>
53 <para>After installing each package, delete its source and build directories,
54 unless specifically instructed otherwise. Deleting the sources prevents
55 mis-configuration when the same package is reinstalled later.</para>
56 </important>
57
58 <para>Check one last time that the <envar>LFS</envar> environment
59 variable is set up properly:</para>
60
61<screen role="nodump"><userinput>echo $LFS</userinput></screen>
62
63 <para>Make sure the output shows the path to the LFS partition's mount
64 point, which is <filename class="directory">/mnt/lfs</filename>, using
65 our example.</para>
66
67</sect1>
Note: See TracBrowser for help on using the repository browser.